-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
37 lines (37 loc) · 958 Bytes
/
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
version: "3.9"
services:
grafana:
image: grafana/grafana:latest
restart: on-failure
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- grafana-configs:/etc/grafana
prometheus:
image: prom/prometheus:latest
restart: on-failure
ports:
- "9090:9090"
volumes:
- prom-data:/prometheus
- prom-configs:/etc/prometheus
node-exporter:
image: prom/node-exporter:latest
restart: on-failure
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)($$|/)'
volumes:
grafana-data:
grafana-configs:
prom-data:
prom-configs: