From 874ada9e43ed119743f7996f41192ad8a96902f6 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 12 May 2022 21:48:08 -0700 Subject: [PATCH] Add persistent storage for Prometheus --- homelab/server/config/monitoring/docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homelab/server/config/monitoring/docker-compose.yml b/homelab/server/config/monitoring/docker-compose.yml index 3204888f..d9351b39 100644 --- a/homelab/server/config/monitoring/docker-compose.yml +++ b/homelab/server/config/monitoring/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: grafana: image: grafana/grafana-oss:latest - container_name: grafana_grafana + container_name: monitoring_grafana restart: unless-stopped networks: - monitoring @@ -25,7 +25,8 @@ services: ports: - 9090:9090 volumes: - - ./prometheus.yml:/etc/prometheus/prometheus.yml + - ./prometheus.yml:/etc/prometheus/prometheus.yml + - ${DOCKER_DATA}/prometheus:/prometheus restart: unless-stopped command: - "--config.file=/etc/prometheus/prometheus.yml"