-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
59 lines (59 loc) · 1.34 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
version: '2'
services:
prometheus:
image: prom/prometheus
restart: always
ports:
- "9090:9090"
links:
- blackbox_exporter
- alertmanager
volumes:
- "./config:/config"
- "./data/prometheus:/data"
command: -config.file=/config/prometheus.yml -storage.local.path=/data -storage.local.retention=5000h -alertmanager.url=http://alertmanager:9093
blackbox_exporter:
image: prom/blackbox-exporter
ports:
- "9115:9115"
dns: 8.8.8.8
restart: always
ports:
- "9115:9115"
volumes:
- "./config:/config"
command: -config.file=/config/blackbox.yml
alertmanager:
image: prom/alertmanager
restart: always
links:
- alertlogger
ports:
- "9093:9093"
volumes:
- "./data/alertmanager:/data"
- "./config:/config"
command: -config.file=/config/alertmanager.yml -storage.path=/data
flakyhost.com:
environment:
- HITS_FAIL_COUNT=10
build: flakyhost
restart: always
ports:
- "9567:80"
reliablehost.com:
environment:
- HITS_FAIL_COUNT=0
build: flakyhost
restart: always
ports:
- "9568:80"
alertlogger:
build: alertlogger
restart: always
ports:
- "9566:8088"
environment:
- LOG_ALERT_PATH=/data/alerts.log
volumes:
- "./data/alertlogger:/data"