-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (32 loc) · 854 Bytes
/
docker-compose.dev.yml
File metadata and controls
36 lines (32 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.8'
# Development overrides for hot-reloading and debugging
services:
backend:
build:
context: ./invoice-generator-backend
dockerfile: Dockerfile
target: builder # Use builder stage for development
command: go run ./cmd
volumes:
- ./invoice-generator-backend:/app
- backend-storage:/app/storage/files
- /app/vendor # Exclude vendor directory
environment:
- CGO_ENABLED=0
- GO_ENV=development
frontend:
build:
context: ./invoice-generator-frontend
dockerfile: Dockerfile
target: deps # Use deps stage for development
command: npm run dev
volumes:
- ./invoice-generator-frontend:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
ports:
- "3000:3000"
volumes:
backend-storage: