Skip to content

Saving data after docker restart #127

Answered by zeitlinger
Walli-DO asked this question in Q&A
Discussion options

You must be logged in to vote

P.S: I also found something strange, you can easily log into Grafana without authorization and make all the settings, is this how it was intended? If so, is there any way to disable this?

yes, this docker image is optimized for easy testing

you can pass grafana env vars to change that however - see https://github.com/grafana/grafana/blob/main/conf/sample.ini#L557

you can create a pr to set these env vars only if missing:

export GF_AUTH_ANONYMOUS_ENABLED=true
export GF_AUTH_ANONYMOUS_ORG_ROLE=Admin

this snippet also shows how env vars are translated, e.g. https://github.com/grafana/grafana/blob/main/con…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Walli-DO
Comment options

Answer selected by Walli-DO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants