diff --git a/docker/grafana/docker-compose.yml b/docker/grafana/docker-compose.yml index 92d4ca2..1a3e34a 100644 --- a/docker/grafana/docker-compose.yml +++ b/docker/grafana/docker-compose.yml @@ -10,6 +10,9 @@ services: volumes: - /docker/appdata/prometheus:/etc/prometheus - prom_data:/prometheus + networks: + - grafana + grafana: image: grafana/grafana:11.2.2 container_name: grafana @@ -21,6 +24,8 @@ services: - GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD volumes: - /docker/appdata/grafana:/etc/grafana/provisioning/datasources + networks: + - grafana loki: image: grafana/loki:2.4.0 @@ -31,6 +36,8 @@ services: - "3100:3100" restart: unless-stopped command: -config.file=/etc/loki/loki-config.yml + networks: + - grafana promtail: image: grafana/promtail:2.4.0 @@ -40,12 +47,16 @@ services: - /docker/appdata/promtail:/etc/promtail restart: unless-stopped command: -config.file=/etc/promtail/promtail-config.yml + networks: + - grafana snmp-exporter: image: prom/snmp-exporter:v0.26.0 volumes: - /docker/appdata/snmp:/etc/snmp_exporter command: --config.file=/etc/snmp-exporter/snmp.yml + networks: + - grafana node_exporter: image: quay.io/prometheus/node-exporter:v1.8.2 @@ -55,6 +66,8 @@ services: restart: unless-stopped volumes: - /:/host:ro,rslave + networks: + - grafana cadvisor: image: gcr.io/cadvisor/cadvisor:v0.50.0 @@ -69,6 +82,8 @@ services: - /dev/kmsg privileged: true restart: unless-stopped + networks: + - grafana sonarr-exporter: image: ghcr.io/onedr0p/exportarr:v2.0 @@ -127,5 +142,8 @@ services: - "9712:9712" restart: unless-stopped +networks: + grafana: + volumes: prom_data: \ No newline at end of file