From c17ed43bad4273d99df32f4dccac17a86c507935 Mon Sep 17 00:00:00 2001 From: cato447 Date: Fri, 10 Jul 2026 01:31:51 +0200 Subject: [PATCH] pass ENV to plugin --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 16a07cd..e4ef9ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,8 +50,11 @@ services: - GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer - GF_AUTH_ANONYMOUS_HIDE_VERSION=true # SQL-computed labels (patterns, raw table, SLA day grouping) use SQLite's - # 'localtime', which resolves to this container's timezone. + # 'localtime', which resolves to this container's timezone. Grafana strips + # host env vars from plugin processes by default, so TZ must be forwarded + # explicitly to the sqlite datasource. - TZ=${TZ:-Etc/UTC} + - GF_PLUGINS_FORWARD_HOST_ENV_VARS=frser-sqlite-datasource volumes: # :ro because any Grafana viewer (incl. anonymous) can send arbitrary SQL # to the datasource API; the mount and mode=ro keep that harmless.