-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 815 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
services:
api:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- /app/frontend/node_modules
environment:
- DJANGO_DEBUG=True
command: >
sh -c "python manage.py migrate --noinput &&
python manage.py seed_careers &&
python manage.py seed_quiz &&
python manage.py runserver 0.0.0.0:8000"
frontend:
image: node:20-slim
working_dir: /app
# Publish same port as vite.config.js (5175) so host URL matches Vite's "Local:" log line.
ports:
- "5175:5175"
environment:
# Inside Docker, Django is the `api` service — not localhost.
- VITE_API_PROXY_TARGET=http://api:8000
volumes:
- ./frontend:/app
- /app/node_modules
command: sh -c "npm install && npm run dev -- --host"