From 8c513959e43685646ddecf4db419433f3cf870b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20Uzdo=C4=9Fan?= Date: Fri, 23 Jun 2023 14:09:20 +0200 Subject: [PATCH] Persist loki and prometheus data --- environments/grafana.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/environments/grafana.yaml b/environments/grafana.yaml index b8bbea6de..cb40c8555 100644 --- a/environments/grafana.yaml +++ b/environments/grafana.yaml @@ -22,6 +22,7 @@ services: - "${GRAFANA_LOKI_EXTERNAL_PORT}:3100" volumes: - ./loki-config.yaml:/etc/loki/local-config.yaml + - ../../data/loki/:/loki/ # Persist loki filesystem storage, outside the sourcify/ folder command: -config.file=/etc/loki/local-config.yaml networks: - source-verify @@ -61,7 +62,7 @@ services: - "${GRAFANA_PROMETHEUS_EXTERNAL_PORT}:9090" volumes: - /etc/prometheus:/etc/prometheus - - prometheus-data:/prometheus + - ../../data/prometheus/:/prometheus restart: unless-stopped command: - "--config.file=/etc/prometheus/prometheus.yml"