-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
131 lines (122 loc) · 2.65 KB
/
local.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
api:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
container_name: authors-api
restart: always
volumes:
- .:/app:z
- static_volume:/app/src/staticfiles
- media_volume:/app/src/mediafiles
expose:
- 8000
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgresql
depends_on:
- postgres
- mailhog
- rabbitmq
- elasticsearch
command: /start.sh
networks:
- authors-api
stdin_open: true
tty: true
postgres:
build:
context: .
dockerfile: ./docker/local/postgresql/Dockerfile
container_name: authors-postgres
volumes:
- local_postgres_data:/var/lib/postgresql/data
- local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgresql
networks:
- authors-api
elasticsearch:
image: elasticsearch:7.17.23
container_name: authors-elasticsearch
environment:
- discovery.type=single-node
ports:
- 9200:9200
networks:
- authors-api
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: authors-mailhog
ports:
- 8025:8025
networks:
- authors-api
rabbitmq:
image: rabbitmq:3.13-management-alpine
container_name: authors-rabbitmq
ports:
- 5672:5672
- 15672:15672
networks:
- authors-api
celery_worker:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
container_name: authors-celery-worker
command: /start-celery-worker.sh
volumes:
- ./src:/app
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgresql
depends_on:
- rabbitmq
- postgres
- mailhog
networks:
- authors-api
flower:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
container_name: authors-flower
command: /start-flower.sh
volumes:
- flower_data:/data
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgresql
ports:
- 5555:5555
depends_on:
- celery_worker
- postgres
- rabbitmq
networks:
- authors-api
nginx:
build:
context: ./docker/local/nginx/
dockerfile: Dockerfile
container_name: authors-nginx
restart: always
ports:
- 8080:80
depends_on:
- api
volumes:
- static_volume:/app/src/staticfiles
- media_volume:/app/src/mediafiles
networks:
- authors-api
networks:
authors-api:
driver: bridge
volumes:
static_volume:
media_volume:
local_postgres_data: {}
local_postgres_data_backups: {}
flower_data: {}