-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
56 lines (47 loc) · 1.18 KB
/
docker-compose.prod.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
##############################################################
# The main docker-compose file for standing up the mono-repo
# of the data ingestion project.
# This is the compose file for setting up the project in its
# production environment.
##############################################################
---
version: '3.9'
services:
# The Nginx Server for Routing Traffic:
nginx-reverse-proxy:
ports:
- "80:80"
- "81:81"
# Django Server:
private-rest-api:
command: ["./start_server.sh"]
env_file:
prod.env
# Celery Worker:
celery-worker:
command: ["./run_celery_worker.sh"]
env_file:
prod.env
# Celery Beat Scheduler:
celery-beat-scheduler:
volumes:
- .:/app
env_file:
prod.env
command: ["./run_celery_beat.sh"]
# Celery Monitor Flower:
celery-flower-monitor:
command: ["./run_celery_flower.sh"]
env_file:
prod.env
# Redis Database for Celery:
celery-redis:
command: ["./run_redis.sh"]
env_file:
prod.env
# PostgreSQL Database for the rest api:
rest-api-psql:
volumes:
- rest-api-psql-volume:/var/lib/postgresql/data
env_file:
prod.env