feat: add wireguard-exporter and grafana for monitoring

This commit is contained in:
feldjaeger 2026-04-18 17:07:37 +02:00
parent 5c35a1ed36
commit 093f5fd7d7

View file

@ -93,3 +93,36 @@ services:
- '--path.sysfs=/host/sys' - '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($|/)' - '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($|/)'
restart: unless-stopped restart: unless-stopped
wireguard-exporter:
image: mondough/wireguard-exporter:latest
container_name: wireguard-exporter
network_mode: host
pid: host
cap_add:
- NET_ADMIN
volumes:
- /etc/wireguard:/etc/wireguard:ro
ports:
- "9586:9586"
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- "3000:3000"
volumes:
- /app-config/grafana_data:/var/lib/grafana
- /app-config/grafana_provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana123
- GF_AUTH_ANONYMOUS_ENABLED=false
- GF_SERVER_ROOT_URL=http://grafana:3000
- GF_AUTH_GENERIC_OAUTH_ENABLED=true
networks:
- monitoring_network
depends_on:
- prometheus