-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
37 lines (35 loc) · 949 Bytes
/
docker-compose.dev.yml
File metadata and controls
37 lines (35 loc) · 949 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
37
services:
frontend:
build:
context: ./frontend
target: dev
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL:-}
environment:
NODE_ENV: development
WATCHPACK_POLLING: "true"
CHOKIDAR_USEPOLLING: "true"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
- frontend_next:/app/.next
command: >
sh -c "if [ ! -d node_modules ] || [ -z \"$(ls -A node_modules 2>/dev/null)\" ];
then npm ci --legacy-peer-deps;
fi &&
npm run dev -- --hostname 0.0.0.0 --port 3000"
backend:
build:
context: ./backend
target: dev
environment:
PYTHONDONTWRITEBYTECODE: "1"
PYTHONUNBUFFERED: "1"
volumes:
- ./backend:/app
- backend_uploads_data:/app/uploads
- backend_compiled_data:/app/compiled
volumes:
frontend_node_modules:
frontend_next: