Files
P-Bulle/grafana/compose.yaml
T
nocodeandClaude Opus 5.5 971e1db036 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:53:14 +01:00

48 lines
1.1 KiB
YAML
Executable File

services:
grafana:
image: grafana/grafana
restart: on-failure
ports:
- 3000:3000
volumes:
- data:/var/lib/grafana
- ./provisioning:/etc/grafana/provisioning:ro
environment:
- GF_SECURITY_ADMIN_USER=nocode
- GF_SECURITY_ADMIN_PASSWORD=Pikachu2905
depends_on:
- prometheus
prometheus:
image: prom/prometheus
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus:/prometheus
# métriques de la machine hôte (CPU, RAM, disques, réseau)
node-exporter:
image: prom/node-exporter
restart: unless-stopped
command: --path.rootfs=/host
pid: host
volumes:
- /:/host:ro,rslave
# métriques par conteneur (jellyfin, arr, netbox...)
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.49.1
restart: unless-stopped
privileged: true
devices:
- /dev/kmsg
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
volumes:
data:
prometheus: