-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
80 lines (73 loc) · 1.6 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.7'
services:
redis:
image: redis
restart: unless-stopped
expose:
- 6379
web:
build:
context: ./web
dockerfile: Dockerfile.prod
command: gunicorn exonsurfer.wsgi:application --bind 0.0.0.0:8000 --timeout 600 --access-logfile /home/app/web/gunicorn-access.log --error-logfile /home/app/web/gunicorn-access.log
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/Data
expose:
- 8000
env_file:
- ./.env.prod
depends_on:
- db
- redis
rq_high:
build:
context: ./web
dockerfile: Dockerfile.prod
command: python3 manage.py rqworker high
links:
- redis
volumes:
- media_volume:/home/app/web/Data
env_file:
- ./.env.prod
depends_on:
- web
- db
- redis
entrypoint: ["/home/app/web/entrypoint_2.sh"]
rq_low:
build:
context: ./web
dockerfile: Dockerfile.prod
command: python3 manage.py rqworker low
links:
- redis
volumes:
- media_volume:/home/app/web/Data
env_file:
- ./.env.prod
depends_on:
- web
- db
- redis
entrypoint: ["/home/app/web/entrypoint_2.sh"]
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/Data
ports:
- 8889:80
depends_on:
- web
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.prod.db
volumes:
static_volume:
media_volume:
postgres_data: