-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
44 lines (39 loc) · 1.01 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
version: "3"
services:
web:
image: &web samagragovernance/esamwad-backend:5.1.9
command: gunicorn --workers=4 --threads=16 settings.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/staticfiles
expose:
- 8000
ports:
- 8006:8000
env_file:
- ./.env.prod
environment:
- IS_WEB=true
nginx:
image: samagragovernance/esamwad-nginx:0.1.0
volumes:
- static_volume:/home/app/staticfiles
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- 80:80
- 443:443
depends_on:
- web
worker:
image: samagragovernance/esamwad-backend:5.1.9
restart: on-failure
env_file:
- ./.env.prod
command: celery worker --app=settings.celery.app --concurrency=8 --hostname=worker@%h --loglevel=INFO
scheduler:
image: samagragovernance/esamwad-backend:5.1.9
restart: on-failure
env_file:
- ./.env.prod
command: celery beat --app=settings.celery.app --loglevel=INFO
volumes:
static_volume: