-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.24 KB
/
docker-compose.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3'
services:
db:
image: postgres:latest
networks:
- db_network
volumes:
- city_orient_db_volume:/var/lib/postgresql/data
env_file:
- ./backend/.env.local.db
backend:
build: ./backend
command: >
bash -c "sleep 5 &&
python manage.py makemigrations &&
python manage.py migrate &&
gunicorn --bind :8000 --reload city_orient_backend.wsgi:application"
depends_on:
- db
volumes:
- ./backend/src:/src
- media_volume:/media
networks:
- nginx_network
- db_network
env_file:
- ./backend/.env.local
frontend:
build: ./frontend
command: npm run local
depends_on:
- backend
networks:
- nginx_network
volumes:
- ./frontend/src:/src
stdin_open: true
tty: true
environment:
- CHOKIDAR_USEPOLLING=true
nginx:
image: nginx:1.13
ports:
- 8080:8080
- 8081:8081
volumes:
- ./nginx/local:/etc/nginx/conf.d
- ./backend/static:/static
- media_volume:/media
depends_on:
- backend
networks:
- nginx_network
networks:
nginx_network:
driver: bridge
db_network:
driver: bridge
volumes:
city_orient_db_volume:
media_volume: