-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (50 loc) · 1.09 KB
/
docker-compose.dev.yml
File metadata and controls
53 lines (50 loc) · 1.09 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
# Backend Service (Development)
backend:
build:
context: ./server
dockerfile: Dockerfile.dev
container_name: flake-wire-backend-dev
restart: unless-stopped
environment:
- NODE_ENV=development
- PORT=3001
env_file:
- .env
ports:
- "3001:3001"
- "9229:9229" # Debug port
volumes:
- ./server:/app
- /app/node_modules
- ./logs:/app/logs
networks:
- flake-wire-network
command: npm run dev
# Frontend Service (Development)
frontend:
build:
context: ./client
dockerfile: Dockerfile.dev
container_name: flake-wire-frontend-dev
restart: unless-stopped
environment:
- REACT_APP_API_URL=http://localhost:3001/api
- CHOKIDAR_USEPOLLING=true
ports:
- "3000:5173"
depends_on:
- backend
volumes:
- ./client:/app
- /app/node_modules
networks:
- flake-wire-network
command: npm run dev -- --host 0.0.0.0
networks:
flake-wire-network:
driver: bridge
name: flake-wire-dev-network
volumes:
logs:
driver: local