amazon web services - How do I change Grafana docker container environment variables on AWS Fargate to use a mysql database - Stack Overflow
Changed Environment Variables do not get picked up in Grafana even though the `env` command has the updated values
Grafana in Docker: not all Environment variables are transferred to grafana.ini - Stack Overflow
How to set ALLOW_EMBEDDING=true?
Yeah i ran into this problem. What i ended up having to do was copy the default co configuration file into a new file and change the ALLOW_EMBEDDING=true. I then had to rebuild my container and bind mount the modified config file into a directory, i put it in the same directory as the default config. You have to define a new env variable of GF_PATHS_CONFIG and point it to wherever you bound your updated config file. May be a better way to do this but that's how i got it to work.
More on reddit.comHello,
I am running Grafana in a Docker Desktop image (Win 10) and am trying to set environment variable ALLOW_EMBEDDING=true in order to add my grafana dashboard as an iframe to home assistant (also in a docker container).
Per the documentation (https://grafana.com/docs/grafana/latest/installation/configuration/#configure-with-environment-variables), I should be able to override the configuration file using "GF_SECURITY_ALLOW_EMBEDDING=true" (without quotes). After entering this in the CLI and restarting my grafana container, I am still seeing allow_embedding=false in the /etc/grafana/grafana.ini file. I also tried "export GF_SECURITY_ALLOW_EMBEDDING=true" (without quotes) in the CLI/restarting to no avail.
Does anyone run grafana in docker desktop and been able to allow embedding of their dashboard(s)? Thank you in advance for any assistance!
Yeah i ran into this problem. What i ended up having to do was copy the default co configuration file into a new file and change the ALLOW_EMBEDDING=true. I then had to rebuild my container and bind mount the modified config file into a directory, i put it in the same directory as the default config. You have to define a new env variable of GF_PATHS_CONFIG and point it to wherever you bound your updated config file. May be a better way to do this but that's how i got it to work.
You could simply use an env variable to set allow_embedding in grafana config:
GF_SECURITY_ALLOW_EMBEDDING=true
grafana docs
I'm using Grafana using docker-compose file, when i tried to change the minimum refresh time from 5s to 1s in the grafana.ini file, but i realize that it is read-only file. So how do i fix this ?
**i don't have any environmental variables defined in the docker-compose file.