-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
81 lines (74 loc) · 1.73 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
76
77
78
79
80
81
services:
api: &api
build:
context: .
dockerfile: ./docker/production/django/Dockerfile
container_name: authors-api
restart: always
volumes:
- static_volume:/app/src/staticfiles
- media_volume:/app/src/mediafiles
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgresql
depends_on:
- postgres
- rabbitmq
- elasticsearch
command: /start.sh
networks:
- reverseproxy_nw
postgres:
build:
context: .
dockerfile: ./docker/production/postgresql/Dockerfile
container_name: authors-postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgresql
networks:
- reverseproxy_nw
elasticsearch:
image: elasticsearch:7.17.23
container_name: authors-elasticsearch
environment:
- discovery.type=single-node
ports:
- 9200:9200
networks:
- reverseproxy_nw
rabbitmq:
image: rabbitmq:3.13-management-alpine
container_name: authors-rabbitmq
ports:
- 5672:5672
- 15672:15672
networks:
- reverseproxy_nw
celery_worker:
<<: *api
container_name: authors-celery-worker
command: /start-celery-worker.sh
networks:
- reverseproxy_nw
flower:
<<: *api
container_name: authors-flower
command: /start-flower.sh
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: {}