Fix Grafana InfluxDB startup permissions

Fix Grafana InfluxDB startup permissions
This commit is contained in:
2026-04-30 11:32:51 +02:00
parent c736aadf1e
commit c632a850f3
2 changed files with 7 additions and 4 deletions
+3 -4
View File
@@ -9,13 +9,11 @@ services:
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password
GF_USERS_ALLOW_SIGN_UP: "false"
GF_AUTH_ANONYMOUS_ENABLED: "false"
entrypoint: ["/bin/sh", "-ec"]
command: >
export GRAFANA_INFLUXDB_TOKEN="$$(cat /run/secrets/grafana_influxdb_token)"
&& exec /run.sh
entrypoint: ["/bin/sh", "/opt/grafana-wrapper/grafana-entrypoint.sh"]
volumes:
- /mnt/user/appdata/grafana:/var/lib/grafana
- ./provisioning:/etc/grafana/provisioning:ro
- ./scripts:/opt/grafana-wrapper:ro
secrets:
- grafana_admin_password
- grafana_influxdb_token
@@ -44,6 +42,7 @@ services:
image: influxdb:3.9.1-core
container_name: influxdb3-core
restart: unless-stopped
user: "0"
command:
- influxdb3
- serve
@@ -0,0 +1,4 @@
set -eu
export GRAFANA_INFLUXDB_TOKEN="$(cat /run/secrets/grafana_influxdb_token)"
exec /run.sh