Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

63 lines (58 sloc) 1.64 KB
---
version: '3'
services:
mon_prometheus:
image: prom/prometheus:latest
container_name: mon_prometheus
restart: unless-stopped
volumes:
- $PWD/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- mon_node-exporter
- mon_cadvisor
mon_node-exporter:
image: prom/node-exporter:latest
container_name: mon_node-exporter
restart: unless-stopped
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--path.rootfs=/host'
- '--collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)"'
- '--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
mon_cadvisor:
image: google/cadvisor:latest
container_name: mon_cadvisor
restart: unless-stopped
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
mon_grafana:
image: grafana/grafana:latest
container_name: mon_grafana
restart: unless-stopped
volumes:
- /var/docker/data/monitoring/grafana:/var/lib/grafana
ports:
- 3000:3000
user: "1000" # USER ID des Docker Users anpassen
depends_on:
- mon_prometheus
labels:
- "traefik.backend=grafana"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:grafana.example.com"
- "traefik.port=8080"
- "traefik.docker.network=traefik_proxy"
networks:
traefik_proxy:
external:
name: traefik_proxy
default:
driver: bridge
You can’t perform that action at this time.