-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (61 loc) · 1.58 KB
/
docker-compose.yaml
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
version: '3.9'
services:
minio:
image: quay.io/minio/minio:latest
hostname: minio
container_name: minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: "admin"
MINIO_ROOT_PASSWORD: "password"
ports:
- 9001:9001
minio-init:
image: minio/mc
container_name: minio-init
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add storage http://minio:9000 admin password;
/usr/bin/mc rm -r --force storage/loki;
/usr/bin/mc mb storage/loki;
/usr/bin/mc policy set public storage/loki;
exit 0;
"
loki1:
image: grafana/loki:2.5.0
hostname: loki1
container_name: loki1
command: -config.file=/etc/loki/config.yml -log.level=debug
volumes:
- ./conf/loki/config1.yml:/etc/loki/config.yml
depends_on:
- minio-init
loki2:
image: grafana/loki:2.5.0
hostname: loki2
container_name: loki2
command: -config.file=/etc/loki/config.yml -log.level=debug
volumes:
- ./conf/loki/config2.yml:/etc/loki/config.yml
depends_on:
- minio-init
envoy:
image: envoyproxy/envoy:v1.22.0
hostname: envoy
container_name: envoy
volumes:
- ./conf/envoy/envoy.yaml:/etc/envoy/envoy.yaml
ports:
- 8080:8080
- 3100:3100
grafana:
image: grafana/grafana-oss:8.5.4
hostname: grafana
container_name: grafana
volumes:
- ./conf/grafana/provisioning:/etc/grafana/provisioning
- ./conf/grafana/grafana.ini:/etc/grafana/grafana.ini
ports:
- 3000:3000