-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
66 lines (63 loc) · 1.13 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
version: '3.8'
services:
redis:
image: "redis:7.2-alpine"
volumes:
- "redis:/data"
migration:
build: .
depends_on:
- db
command: python manage.py migrate --noinput
volumes:
- ./:/usr/src/app/
env_file:
- ./.env.prod
web:
build: .
depends_on:
- db
command: gunicorn paList.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./:/usr/src/app/
env_file:
- ./.env.prod
beat:
build: .
depends_on:
- redis
- db
- migration
command: python -m celery -A paList beat
volumes:
- ./:/usr/src/app/
env_file:
- ./.env.prod
worker:
build: .
depends_on:
- redis
- db
- migration
command: python -m celery -A paList worker
volumes:
- ./:/usr/src/app/
env_file:
- ./.env.prod
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80:80"
depends_on:
- web
db:
image: postgres:13.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.db.prod
volumes:
postgres_data:
redis: {}