homelab-infrastructure/leycloud/grafana.yml

42 lines
959 B
YAML

version: '3.8'
services:
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
restart: unless-stopped
networks:
- monitoring
environment:
- GF_SERVER_ROOT_URL=https://grafana.linpy.de
volumes:
- /home/florian/docker/grafana/data:/var/lib/grafana
ports:
- "3002:3000"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
networks:
- monitoring
volumes:
- /home/florian/docker/prometheus/config:/etc/prometheus
- /home/florian/docker/prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
networks:
- monitoring
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks:
monitoring:
driver: bridge