-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
48 lines (46 loc) · 1.03 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
version: '3.7'
services:
nginx:
container_name: nginx
image: ${DOCKERHUB_USERNAME}/erasmail_nginx:latest
command: [nginx, '-g', 'daemon off;']
ports:
- 80:80
- 443:443
environment:
- SERVER_NAME=tfe-imap.info.ucl.ac.be
depends_on:
- web
web:
container_name: web
image: ${DOCKERHUB_USERNAME}/erasmail_web:latest
command: ["sh", "-c",
"python manage.py migrate;
gunicorn erasmail.wsgi:application -t 0 -b 0.0.0.0:8000 --log-level=info;"
]
expose:
- 8000
env_file:
- ./.env.prod
depends_on:
- db
- redis
db:
container_name: db
image: postgres:alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db
celery:
container_name: celery
image: ${DOCKERHUB_USERNAME}/erasmail_web:latest
command: celery -A erasmail worker -l info
env_file:
- ./.env.prod
depends_on:
- redis
redis:
image: redis:alpine
volumes:
postgres_data: