-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
42 lines (38 loc) · 1.07 KB
/
compose.dev.yml
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
version: "3.9"
services:
backend:
ports:
- "8000:8000"
command:
# sh -c "python manage.py runserver 0.0.0.0:8000"
# sh -c "python manage.py wait_for_db &&
# python manage.py runserver 0.0.0.0:8000"
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
# python manage.py wait_for_db &&
env_file:
- ./backend/.env
db:
volumes:
- dev-db-data:/var/lib/postgresql/data/
env_file:
- ./backend/.env
# command:
# sh -c "env"
# environment:
# - POSTGRES_PASSWORD=${DB_PASS}
frontend:
build:
target: build
# args:
# - NODE_ENV=development
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- ./frontend/node_modules:/app/node_modules
command:
npm run dev
volumes:
dev-db-data: