-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
58 lines (55 loc) · 1.14 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
version: "3.7"
services:
web:
build:
context: ./services/web
dockerfile: Dockerfile.prod
command: gunicorn --bind 0.0.0.0:5000 manage:app
volumes:
- static_volume:/home/app/web/project/static
- media_volume:/home/app/web/project/media
expose:
- 5000
env_file:
- ./.env.prod
depends_on:
- db
- redis
db:
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.prod
nginx:
build: ./services/nginx
volumes:
- static_volume:/home/app/web/project/static
- media_volume:/home/app/web/project/media
ports:
- 80:80
depends_on:
- web
worker:
build:
context: ./services/celery-queue
dockerfile: Dockerfile
env_file:
- ./.env.dev
ports:
- "5555:5555"
volumes:
- celery-flower_data:/persistent
depends_on:
- redis
redis:
image: redis:5-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
volumes:
static_volume:
media_volume:
postgres_data:
redis-data:
celery-flower_data: