-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment.yml
46 lines (42 loc) · 909 Bytes
/
development.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
43
44
45
46
version: "3.4"
services:
frontend:
build:
context: frontend
dockerfile: Dockerfile
args:
REACT_APP_API_URL: ${API_URL}
REACT_APP_IMAGE_URL: ${IMAGE_URL}
image: frontend
volumes:
- ./frontend/src:/app/src
ports:
- "3003:3000"
backend:
build:
context: backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/app
- media_volume_local:/backend/media
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
env_file:
- ./env/postgres.env
depends_on:
- db
db:
ports:
- "5431:5432"
image: postgres:10.5
env_file:
- ./env/postgres.env
volumes:
- db_test:/var/lib/postgresql/data
volumes:
db_test:
media_volume_local: