-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDocker-compose.yml
executable file
·106 lines (99 loc) · 2.67 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
version: "2"
services:
minio:
image: "minio/minio:latest"
restart: "unless-stopped"
entrypoint:
- "sh"
- "-euc"
- "mkdir -p /data/tempo /data/mimir /data/loki && /usr/bin/docker-entrypoint.sh minio server --quiet --address 0.0.0.0:9000 --console-address ':9001' /data"
volumes:
- "./.data/minio:/data"
environment:
- "MINIO_ROOT_USER=accesskey"
- "MINIO_ROOT_PASSWORD=supersecret"
ports:
- "9000:9000"
- "9001:9001"
mimir:
image: "grafana/mimir:latest"
restart: "unless-stopped"
command:
- "--config.file=/etc/mimir/server.yml"
volumes:
- "./mimir/config/server.yml:/etc/mimir/server.yml"
- "./mimir/config/alertmanager.yaml:/etc/mimir/alertmanager-fallback-config.yaml"
ports:
- "3300:3300"
depends_on:
- "minio"
prometheus:
image: "prom/prometheus:latest"
restart: "unless-stopped"
entrypoint:
- "/bin/prometheus"
- "--config.file=/etc/prometheus/server.yml"
volumes:
- "./prometheus/config/server.yml:/etc/prometheus/server.yml"
ports:
- "9090:9090"
depends_on:
- "mimir"
loki:
image: "grafana/loki:latest"
restart: "unless-stopped"
command: "-config.file=/etc/loki/server.yml"
volumes:
- "./loki/config/server.yml:/etc/loki/server.yml"
ports:
- "3100:3100"
- "7946"
depends_on:
- "minio"
tempo:
image: "grafana/tempo:latest"
restart: "unless-stopped"
command: "-config.file=/etc/tempo/server.yml"
volumes:
- "./tempo/config/server.yml:/etc/tempo/server.yml"
ports:
- "3200:3200"
- "3201:3201"
- "7946"
depends_on:
- "minio"
agent:
image: "grafana/agent:latest"
restart: "unless-stopped"
command:
- "--config.file=/etc/agent/config.yml"
- "--server.http.address=0.0.0.0:7020"
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:ro"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
- "/dev/disk/:/dev/disk:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./agent/config/agent.yml:/etc/agent/config.yml"
- "./.data/agent:/etc/agent/data"
ports:
- "7020:7020"
- "7021:7021"
depends_on:
- "tempo"
grafana:
image: "grafana/grafana:latest"
restart: "unless-stopped"
volumes:
- "./grafana/config/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml"
environment:
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
- "GF_AUTH_DISABLE_LOGIN_FORM=true"
ports:
- "3000:3000"
depends_on:
- "mimir"
- "loki"
- "tempo"