-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
67 lines (59 loc) · 1.46 KB
/
docker-compose.prod.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
services:
django-app:
container_name: education_platform
build: ./education_platform
command: gunicorn education_platform.wsgi:application --bind 0.0.0.0:8000
restart: unless-stopped
volumes:
- ./education_platform:/app
ports:
- "8000:8000"
env_file:
- ./env_variables/education_platform.env
depends_on:
- postgres_db
flask-notifications:
container_name: flask_notif
build: ./notifications
command: flask run --host=0.0.0.0
restart: unless-stopped
volumes:
- ./notifications:/app
ports:
- "5000:5000"
env_file:
- ./env_variables/flask_notif.env
depends_on:
- notification_postgres_db
- django-app
proxy:
image: nginx:mainline
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "88:80"
depends_on:
- django-app
- flask-notifications
postgres_db:
image: postgres
restart: unless-stopped
ports:
- "5432:5432"
env_file:
- ./env_variables/postgres_db.env
volumes:
- postgres_db_data:/var/lib/postgresql/data
notification_postgres_db:
image: postgres
restart: unless-stopped
ports:
- "5433:5432"
env_file:
- ./env_variables/notifications_postgres_db.env
volumes:
- notification_postgres_db_data:/var/lib/postgresql/data
volumes:
postgres_db_data:
notification_postgres_db_data: