-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.bak
More file actions
158 lines (151 loc) · 4.02 KB
/
docker-compose.yml.bak
File metadata and controls
158 lines (151 loc) · 4.02 KB
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
version: "3.9"
services:
# -----------------------------
# Prometheus - Metrics
# -----------------------------
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prometheus/alert.rules.yml:/etc/prometheus/alert.rules.yml:ro
- prometheus-data:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --web.enable-lifecycle
depends_on:
alertmanager:
condition: service_healthy
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"wget --spider -q http://prometheus:9090/-/ready || exit 1",
]
interval: 10s
timeout: 5s
retries: 5
# -----------------------------
# Alertmanager - Alerts
# -----------------------------
alertmanager:
image: prom/alertmanager:latest
container_name: alertmanager
ports:
- "9093:9093"
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
- alertmanager-data:/alertmanager
command:
- --config.file=/etc/alertmanager/alertmanager.yml
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"wget --spider -q http://alertmanager:9093/-/ready || exit 1",
]
interval: 10s
timeout: 5s
retries: 5
# -----------------------------
# Grafana - Dashboards / Visualization
# -----------------------------
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_LOG_LEVEL: info
depends_on:
- prometheus
volumes:
- grafana-storage:/var/lib/grafana
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"wget --spider -q http://grafana:3000/api/health || exit 1",
]
interval: 10s
timeout: 5s
retries: 5
# -----------------------------
# Loki - Logs aggregation
# -----------------------------
loki:
image: grafana/loki:2.8.2
container_name: loki
ports:
- "3100:3100"
user: "0:0"
#user: "10001:10001" # ensures proper permissions on volumes
command:
- -config.file=/etc/loki/loki-config.yaml
volumes:
- ./loki/loki-config.yaml:/etc/loki/loki-config.yaml:ro
- loki-index:/loki/index
#- loki-cache:/loki/cache
- loki-chunks:/loki/chunks
#- ./wal:/wal
- loki-wal:/loki/wal
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://loki:3100/ready || exit 1"]
interval: 10s
timeout: 5s
retries: 5
entrypoint: ["/loki-init.sh"]
# -----------------------------
# Tempo - Traces aggregation
# -----------------------------
tempo:
image: grafana/tempo:2.6.0
container_name: tempo
ports:
- "3200:3200" # HTTP API
- "4317:4317" # OTLP gRPC
user: "10001:10001" # ensures proper permissions
volumes:
- ./tempo/tempo-config.yaml:/etc/tempo/tempo-config.yaml:ro
- tempo-data:/tempo-data
command:
- -config.file=/etc/tempo/tempo-config.yaml
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://tempo:3200/ready || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# -----------------------------
# IRC relay - Alert notifications
# -----------------------------
irc-relay:
build:
context: ./irc-deamon
dockerfile: Dockerfile.irc
container_name: irc-relay
ports:
- "8010:8010"
volumes:
- ./irc-deamon/config.yml:/etc/alertmanager-irc-relay/config.yml:ro
command: ["--config", "/etc/alertmanager-irc-relay/config.yml"]
restart: unless-stopped
depends_on:
- alertmanager
volumes:
prometheus-data:
alertmanager-data:
grafana-storage:
tempo-data:
loki-index:
loki-cache:
loki-chunks:
loki-wal: