Fix Grafana InfluxDB startup permissions
Fix Grafana InfluxDB startup permissions
This commit is contained in:
@@ -9,13 +9,11 @@ services:
|
|||||||
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password
|
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana_admin_password
|
||||||
GF_USERS_ALLOW_SIGN_UP: "false"
|
GF_USERS_ALLOW_SIGN_UP: "false"
|
||||||
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
||||||
entrypoint: ["/bin/sh", "-ec"]
|
entrypoint: ["/bin/sh", "/opt/grafana-wrapper/grafana-entrypoint.sh"]
|
||||||
command: >
|
|
||||||
export GRAFANA_INFLUXDB_TOKEN="$$(cat /run/secrets/grafana_influxdb_token)"
|
|
||||||
&& exec /run.sh
|
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/user/appdata/grafana:/var/lib/grafana
|
- /mnt/user/appdata/grafana:/var/lib/grafana
|
||||||
- ./provisioning:/etc/grafana/provisioning:ro
|
- ./provisioning:/etc/grafana/provisioning:ro
|
||||||
|
- ./scripts:/opt/grafana-wrapper:ro
|
||||||
secrets:
|
secrets:
|
||||||
- grafana_admin_password
|
- grafana_admin_password
|
||||||
- grafana_influxdb_token
|
- grafana_influxdb_token
|
||||||
@@ -44,6 +42,7 @@ services:
|
|||||||
image: influxdb:3.9.1-core
|
image: influxdb:3.9.1-core
|
||||||
container_name: influxdb3-core
|
container_name: influxdb3-core
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "0"
|
||||||
command:
|
command:
|
||||||
- influxdb3
|
- influxdb3
|
||||||
- serve
|
- serve
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
set -eu
|
||||||
|
|
||||||
|
export GRAFANA_INFLUXDB_TOKEN="$(cat /run/secrets/grafana_influxdb_token)"
|
||||||
|
exec /run.sh
|
||||||
Reference in New Issue
Block a user