-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.yml
75 lines (69 loc) · 1.77 KB
/
production.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
version: "3.9"
services:
es:
image: elasticsearch:7.17.9
environment:
- discovery.type=single-node
ports:
- "9200:9200"
networks:
- reverseproxy_nw
api: &api
build:
context: .
dockerfile: ./docker/production/django/Dockerfile
image: authors-api
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
depends_on:
- postgres
- redis
- es
command: /start
networks:
- reverseproxy_nw
postgres:
build:
context: .
dockerfile: ./docker/production/postgres/Dockerfile
image: authors_api_database
volumes:
- production_postgres_data:/var/lib/postgres/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgres
networks:
- reverseproxy_nw
redis:
image: redis:7-alpine
networks:
- reverseproxy_nw
celery_worker:
<<: *api
image: authors_api_celery_worker
command: /start-celeryworker
networks:
- reverseproxy_nw
flower:
<<: *api
image: authors_api_flower
command: /start-flower
volumes:
- flower_data:/data
ports:
- "5555:5555"
networks:
- reverseproxy_nw
networks:
reverseproxy_nw:
external: true
volumes:
static_volume: {}
media_volume: {}
production_postgres_data: {}
production_postgres_data_backups: {}
flower_data: {}