-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
443 lines (440 loc) · 11.2 KB
/
docker-compose.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
version: '3.7'
networks:
mimir-net:
driver: bridge
services:
minio:
image: minio/minio:RELEASE.2021-07-15T22-27-34Z
command: server /data --console-address ":9001"
restart: always
ports:
- "9000:9000"
- "9001:9001"
volumes:
- "blockstorage:/data"
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb myminio/mimir-block-docker;
/usr/bin/mc policy set public myminio/mimir-block-docker;
/usr/bin/mc mb myminio/mimir-block-ruler;
/usr/bin/mc policy set public myminio/mimir-block-ruler;
/usr/bin/mc mb myminio/mimir-alert;
/usr/bin/mc policy set public myminio/mimir-alert;
exit 0;"
networks:
- mimir-net
consul-server:
image: consul:1.11
restart: always
ports:
- "8600:8600/udp"
- "8500:8500"
- "8300:8300"
- "8301:8301"
- "8302:8302"
volumes:
- "./consul/:/opt/"
command: "agent -server -bootstrap -ui -config-dir=/opt/ --bind=127.0.0.1"
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki:
image: grafana/loki:2.2.1
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
jaeger:
image: jaegertracing/all-in-one:1.33
environment:
COLLECTOR_ZIPKIN_HOST_PORT: 9411
ports:
- "16686:16686"
- "9411:9411"
- "14268:14268"
- "14250:14250"
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
jaeger-agent:
image: jaegertracing/jaeger-agent:1.33
environment:
REPORTER_GRPC_HOST_PORT: "jaeger:14250"
ports:
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778/tcp"
- "5775:5775/udp"
- "14271:14271"
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_distributor:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "8800:8800"
- "9900:9900"
- "7947:7947"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=distributor
-config.file=/etc/mimir.yml
-server.http-listen-port=8800
-server.grpc-listen-port=9900"
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_ingester-1:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "13100:13100"
- "23100:23100"
- "7946:7946"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "ingester-v1:/tsdb"
command: "-target=ingester
-config.file=/etc/mimir.yml
-server.http-listen-port=13100
-server.grpc-listen-port=23100
-memberlist.bind-port=7946"
depends_on:
- mimir_distributor
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_ingester-2:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "13200:13200"
- "23200:23200"
- "7945:7945"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "ingester-v2:/tsdb"
command: "-target=ingester
-config.file=/etc/mimir.yml
-server.http-listen-port=13200
-server.grpc-listen-port=23200
-memberlist.bind-port=7945"
depends_on:
- mimir_distributor
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_ingester-3:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "13300:13300"
- "23300:23300"
- "7944:7944"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "ingester-v3:/tsdb"
command: "-target=ingester
-config.file=/etc/mimir.yml
-server.http-listen-port=13300
-server.grpc-listen-port=23300
-memberlist.bind-port=7944"
depends_on:
- mimir_distributor
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_frontend:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "8880:8880"
- "28800:28800"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=query-frontend
-config.file=/etc/mimir.yml
-server.http-listen-port=8880
-server.grpc-listen-port=28800"
depends_on:
- mimir_querier-1
- mimir_querier-2
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_querier-1:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "11221:11221"
- "21221:21221"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=querier
-config.file=/etc/mimir.yml
-server.http-listen-port=11221
-server.grpc-listen-port=21221"
depends_on:
- mimir_store_gateway-1
- mimir_store_gateway-2
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_querier-2:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "11222:11222"
- "21222:21222"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=querier
-config.file=/etc/mimir.yml
-server.http-listen-port=11222
-server.grpc-listen-port=21222"
depends_on:
- mimir_store_gateway-1
- mimir_store_gateway-2
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_compactor:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "14000:14000"
- "24000:24000"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "/compactor-v:/data"
command: "-target=compactor
-config.file=/etc/mimir.yml
-server.http-listen-port=14000
-server.grpc-listen-port=24000"
depends_on:
- mimir_distributor
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_store_gateway-1:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "14100:14100"
- "24100:24100"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "store-v1:/tsdb"
command: "-target=store-gateway
-config.file=/etc/mimir.yml
-store-gateway.sharding-ring.tokens-file-path=/tsdb
-server.http-listen-port=14100
-server.grpc-listen-port=24100"
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_store_gateway-2:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "14200:14200"
- "24200:24200"
volumes:
- "./mimir.yml:/etc/mimir.yml"
- "store-v2:/tsdb"
command: "-target=store-gateway
-config.file=/etc/mimir.yml
-store-gateway.sharding-ring.tokens-file-path=/tsdb
-server.http-listen-port=14200
-server.grpc-listen-port=24200"
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_ruler:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "15000:15000"
- "25000:25000"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=ruler
-config.file=/etc/mimir.yml
-server.http-listen-port=15000
-server.grpc-listen-port=25000"
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
mimir_alertmanager:
image: grafana/mimir:2.3.1
restart: on-failure
ports:
- "15100:15100"
- "25100:25100"
volumes:
- "./mimir.yml:/etc/mimir.yml"
command: "-target=alertmanager
-config.file=/etc/mimir.yml
-server.http-listen-port=15100
-server.grpc-listen-port=25100
-alertmanager.web.external-url=http://localhost:15100/alertmanager"
depends_on:
- mimir_ruler
networks:
- mimir-net
environment:
JAEGER_AGENT_HOST: jaeger-agent
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
prometheus-1:
image: prom/prometheus:v2.33.1
ports:
- "9090:9090"
volumes:
- prometheus_data-1:/prometheus
- ./prometheus1.yml:/etc/prometheus/prometheus1.yml
command:
- '--config.file=/etc/prometheus/prometheus1.yml'
depends_on:
- consul-server
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
prometheus-2:
image: prom/prometheus:v2.33.1
ports:
- "9080:9090"
volumes:
- prometheus_data-2:/prometheus
- ./prometheus2.yml:/etc/prometheus/prometheus2.yml
command:
- '--config.file=/etc/prometheus/prometheus2.yml'
depends_on:
- consul-server
networks:
- mimir-net
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
grafana:
image: grafana/grafana:8.0.2
depends_on:
- prometheus-1
- prometheus-2
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- "./datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml"
- "./datasources2.yml:/etc/grafana/provisioning/datasources/datasources2.yml"
- "./datasources3.yml:/etc/grafana/provisioning/datasources/datasources3.yml"
networks:
- mimir-net
volumes:
blockstorage:
driver: local
ingester-v1:
driver: local
ingester-v2:
driver: local
ingester-v3:
driver: local
compactor-v:
driver: local
store-v1:
driver: local
store-v2:
driver: local
prometheus_data-1:
driver: local
prometheus_data-2:
driver: local
grafana-data:
driver: local