-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·75 lines (66 loc) · 1.61 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
68
69
70
71
72
73
74
version: '3'
services:
db:
container_name: postgres
image: mdillon/postgis:11-alpine
ports:
- "5429:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
server:
env_file: .env
image: naxa/covid:1.0.7
restart: on-failure
command: ./docker-entrypoint.prod.sh
ports:
- "8021:8000"
volumes:
- ./media:/code/media
- ./static:/code/static
- .:/code
depends_on:
- db
- redis
redis:
image: redis:alpine
restart: always
container_name: redis_main
volumes:
- ./.backup/redis_main_data:/data
- ./log/redis_main:/var/log/redis
ports:
- 6379:6379
sysctls:
- net.core.somaxconn=2048
celery:
image: naxa/covid:1.0.7
restart: on-failure
container_name: celery
command: celery -A naxa_utilities worker -l Info -Q default
environment:
C_FORCE_ROOT: "yes"
env_file: .env
volumes:
- ./media:/code/media
celery_beat_covid:
image: naxa/covid:1.0.7
restart: on-failure
container_name: celery_beat_covid
command: celery -A naxa_utilities beat
environment:
C_FORCE_ROOT: "yes"
env_file: .env
volumes:
- ./media:/code/media
- ./service_account.json:/code/service_account.json
worker_celery_beat_covid:
image: naxa/covid:1.0.7
restart: on-failure
container_name: worker_celery_beat_covid
command: celery -A naxa_utilities worker -l Info -Q beat
environment:
C_FORCE_ROOT: "yes"
env_file: .env
volumes:
- ./media:/code/media
- ./service_account.json:/code/service_account.json