grafana-docker-stack/docker-compose.yml

58 lines
1.5 KiB
YAML
Raw Normal View History

2021-07-24 08:19:38 +00:00
version: "3.9"
2021-07-30 11:08:09 +00:00
2021-07-24 08:19:38 +00:00
services:
2021-07-30 11:08:09 +00:00
2021-07-24 08:19:38 +00:00
grafana:
2023-02-24 17:55:21 +00:00
image: grafana/grafana:9.3.6-ubuntu
2021-07-24 08:19:38 +00:00
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
2023-02-24 17:55:21 +00:00
- ./configs/grafana/datasources:/etc/grafana/provisioning/datasources/
- ./configs/grafana/dashboards:/etc/grafana/provisioning/dashboards/
2021-07-30 11:08:09 +00:00
2021-07-24 08:19:38 +00:00
prometheus:
2023-02-24 17:55:21 +00:00
image: prom/prometheus:v2.42.0
2021-07-24 08:19:38 +00:00
ports:
- "9090:9090"
volumes:
- prom-data:/prometheus
2023-02-24 17:55:21 +00:00
- ./configs/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
- ./configs/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
2021-07-30 11:08:09 +00:00
alertmanager:
2023-02-24 17:55:21 +00:00
image: prom/alertmanager:v0.25.0
2021-07-30 11:08:09 +00:00
ports:
- "9093:9093"
volumes:
2021-08-06 18:30:10 +00:00
- alert-data:/alertmanager
2023-02-24 17:55:21 +00:00
- ./configs/alertmanager.yml:/etc/alertmanager/alertmanager.yml
2021-08-06 18:30:10 +00:00
2021-07-24 08:19:38 +00:00
node-exporter:
2023-02-24 17:55:21 +00:00
image: prom/node-exporter:v1.5.0
2021-07-24 08:19:38 +00:00
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)($$|/)'
2021-07-30 11:08:09 +00:00
2023-02-24 17:55:21 +00:00
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
2021-07-24 08:19:38 +00:00
volumes:
grafana-data:
prom-data:
2023-02-24 17:55:21 +00:00
alert-data: