-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
68 lines (61 loc) · 1.94 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
version: "3.9"
services:
grafana:
image: grafana/grafana:10.1.5-ubuntu
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./configs/grafana/datasources:/etc/grafana/provisioning/datasources/
- ./configs/grafana/dashboards:/etc/grafana/provisioning/dashboards/
prometheus:
image: prom/prometheus:v2.47.2
ports:
- "9090:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.external-url=http://127.0.0.1:9090"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
volumes:
- prom-data:/prometheus
- ./configs/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
- ./configs/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
alertmanager:
image: prom/alertmanager:v0.25.0
ports:
- "9093:9093"
command:
- "--config.file=/etc/alertmanager/alertmanager.yml"
- "--storage.path=/alertmanager"
- "--web.external-url=http://127.0.0.1:9093"
volumes:
- alert-data:/alertmanager
- ./configs/alertmanager.yml:/etc/alertmanager/alertmanager.yml
node-exporter:
image: prom/node-exporter:v1.6.1
ports:
- "9100:9100"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude'
- '^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)'
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.0
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
volumes:
grafana-data:
prom-data:
alert-data: