From 1e6b8e576ea1be1ff5fabdae3205f6be3bbb38fd Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 7 Nov 2023 19:33:02 +1100 Subject: [PATCH] grafana: Use config file instead of env vars --- monitoring/docker-compose.yml | 5 +---- monitoring/grafana/grafana.ini | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 monitoring/grafana/grafana.ini diff --git a/monitoring/docker-compose.yml b/monitoring/docker-compose.yml index 2940dfa..25b3a29 100644 --- a/monitoring/docker-compose.yml +++ b/monitoring/docker-compose.yml @@ -18,9 +18,6 @@ services: restart: "on-failure" volumes: - "/storage/wubloader-metrics/grafana:/var/lib/grafana" + - "./grafana:/etc/grafana" ports: - "1338:3000" - environment: - GF_AUTH_ANONYMOUS_ENABLED: "true" - GF_AUTH_ANONYMOUS_ORG_NAME: "Main Org." - GF_AUTH_ANONYMOUS_ORG_ROLE: "Viewer" diff --git a/monitoring/grafana/grafana.ini b/monitoring/grafana/grafana.ini new file mode 100644 index 0000000..159fb58 --- /dev/null +++ b/monitoring/grafana/grafana.ini @@ -0,0 +1,4 @@ +[auth.anonymous] +enabled = true +org_name = Main Org. +org_role = Viewer