-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose-production.yml
286 lines (257 loc) · 6.89 KB
/
docker-compose-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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
version: '3.4'
services:
newsaggregator-gateways-api:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-gateways-api:dev
container_name: newsaggregator-gateways-api
depends_on:
- newsaggregator-news-api
- newsaggregator-notification-api
- newsaggregator-gateways-api-seq
networks:
- newsaggregator-gateways-api-proxy
- newsaggregator-news-api-proxy
- newsaggregator-notification-api-proxy
- nginx-proxy
newsaggregator-news-api:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-news-api:dev
container_name: newsaggregator-news-api
depends_on:
# - selenium-hub
- postgres
- redis
- rabbitmq
# - elasticsearch
- newsaggregator-news-api-seq
networks:
- newsaggregator-news-api-proxy
- selenium-hub-proxy
- postgres-proxy
- redis-proxy
- rabbitmq-proxy
- elasticsearch-proxy
- nginx-proxy
newsaggregator-news-mvc:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-news-mvc:dev
container_name: newsaggregator-news-mvc
depends_on:
# - selenium-hub
- postgres
- redis
# - elasticsearch
- newsaggregator-news-mvc-seq
networks:
- newsaggregator-news-mvc-proxy
- selenium-hub-proxy
- postgres-proxy
- redis-proxy
- rabbitmq-proxy
- elasticsearch-proxy
- nginx-proxy
newsaggregator-news-parser:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-news-parser:dev
container_name: newsaggregator-news-parser
depends_on:
- newsaggregator-news-api
# - selenium-hub
- redis
- rabbitmq
- newsaggregator-news-parser-seq
networks:
- newsaggregator-news-parser-proxy
- selenium-hub-proxy
- redis-proxy
- rabbitmq-proxy
newsaggregator-news-searcher:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-news-searcher:dev
container_name: newsaggregator-news-searcher
depends_on:
- newsaggregator-news-api
# - selenium-hub
- redis
- rabbitmq
- newsaggregator-news-searcher-seq
networks:
- newsaggregator-news-searcher-proxy
- selenium-hub-proxy
- redis-proxy
- rabbitmq-proxy
newsaggregator-notification-api:
image: ghcr.io/lev4and/newsaggregator/newsaggregator-notification-api:dev
container_name: newsaggregator-notification-api
depends_on:
- rabbitmq
- newsaggregator-notification-api-seq
networks:
- newsaggregator-notification-api-proxy
- rabbitmq-proxy
- nginx-proxy
postgres:
image: postgres:latest
container_name: postgres
restart: always
networks:
- postgres-proxy
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
depends_on:
- postgres
restart: always
networks:
- nginx-proxy
rabbitmq:
image: rabbitmq:3.10.7-management
container_name: rabbitmq
hostname: rabbitmq
restart: always
networks:
- rabbitmq-proxy
- nginx-proxy
redis:
image: redis/redis-stack:latest
container_name: redis
restart: always
networks:
- redis-proxy
- nginx-proxy
# elasticsearch:
# image: ghcr.io/lev4and/newsaggregator/elasticsearch:dev
# container_name: elasticsearch
# networks:
# - elasticsearch-proxy
# - nginx-proxy
# kibana:
# image: ghcr.io/lev4and/newsaggregator/kibana:dev
# container_name: kibana
# links:
# - elasticsearch
# depends_on:
# - elasticsearch
# networks:
# - elasticsearch-proxy
# - nginx-proxy
# chrome:
# image: selenium/node-chrome:dev
# container_name: chrome
# shm_size: 2gb
# depends_on:
# - selenium-hub
# networks:
# - selenium-hub-proxy
# - nginx-proxy
# selenium-hub:
# image: selenium/hub:latest
# container_name: selenium-hub
# networks:
# - selenium-hub-proxy
# - nginx-proxy
newsaggregator-gateways-api-seq:
image: datalust/seq:latest
container_name: newsaggregator-gateways-api-seq
networks:
- newsaggregator-gateways-api-proxy
- nginx-proxy
newsaggregator-news-api-seq:
image: datalust/seq:latest
container_name: newsaggregator-news-api-seq
networks:
- newsaggregator-news-api-proxy
- nginx-proxy
newsaggregator-news-mvc-seq:
image: datalust/seq:latest
container_name: newsaggregator-news-mvc-seq
networks:
- newsaggregator-news-mvc-proxy
- nginx-proxy
newsaggregator-news-parser-seq:
image: datalust/seq:latest
container_name: newsaggregator-news-parser-seq
networks:
- newsaggregator-news-parser-proxy
- nginx-proxy
newsaggregator-news-searcher-seq:
image: datalust/seq:latest
container_name: newsaggregator-news-searcher-seq
networks:
- newsaggregator-news-searcher-proxy
- nginx-proxy
newsaggregator-notification-api-seq:
image: datalust/seq:latest
container_name: newsaggregator-notification-api-seq
networks:
- newsaggregator-notification-api-proxy
- nginx-proxy
portainer:
image: portainer/portainer
container_name: portainer
restart: always
networks:
- nginx-proxy
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
networks:
- node-exporter-proxy
- nginx-proxy
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
networks:
- prometheus-proxy
- nginx-proxy
grafana:
image: grafana/grafana
container_name: grafana
networks:
- node-exporter-proxy
- prometheus-proxy
- nginx-proxy
nginx:
image: nginx:mainline
container_name: nginx
depends_on:
- newsaggregator-gateways-api
- newsaggregator-gateways-api-seq
- newsaggregator-news-api
- newsaggregator-news-api-seq
- newsaggregator-news-mvc
- newsaggregator-news-parser
- newsaggregator-news-parser-seq
- newsaggregator-news-searcher
- newsaggregator-news-searcher-seq
- newsaggregator-notification-api
- newsaggregator-notification-api-seq
- grafana
networks:
- nginx-proxy
networks:
newsaggregator-gateways-api-proxy:
driver: overlay
newsaggregator-news-api-proxy:
driver: overlay
newsaggregator-news-mvc-proxy:
driver: overlay
newsaggregator-news-parser-proxy:
driver: overlay
newsaggregator-news-searcher-proxy:
driver: overlay
newsaggregator-notification-api-proxy:
driver: overlay
selenium-hub-proxy:
driver: overlay
postgres-proxy:
driver: overlay
redis-proxy:
driver: overlay
rabbitmq-proxy:
driver: overlay
elasticsearch-proxy:
driver: overlay
node-exporter-proxy:
driver: overlay
prometheus-proxy:
driver: overlay
nginx-proxy:
driver: overlay