-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (42 loc) · 920 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
backend:
build:
context: ./backend
args:
- DEV=true
ports:
- "8000:8000"
volumes:
- ./backend/app:/app
- dev-static-data:/vol/web
command:
sh -c " echo 'Waiting for db...' &&
wait-for-it --service db:5432
-- echo 'db is ready.' &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
env_file:
- ./env-dev/backend.env
depends_on:
- "db"
db:
image: postgres:16.1-bookworm
volumes:
- dev-db-data:/var/lib/postgresql/data
env_file:
- ./env-dev/db.env
frontend:
build:
context: ./frontend
args:
- DEV=true
ports:
- "5173:5173"
volumes:
- ./frontend/app:/app
command:
sh -c "npm run dev -- --host=0.0.0.0 --port 5173"
volumes:
dev-db-data:
dev-static-data: