@thedarkula @sshmendez These variables equate to Grafana config settings. There is a passage on the config page that talks about how these are programmatically generated, and how you can determine them on your own. Configuration Configuration documentation Answer from anon70503803 on community.grafana.com
🌐
Grafana
community.grafana.com › t › documentation-for-docker-image-environment-variables › 51694
Documentation For Docker Image Environment Variables - Grafana - Grafana Labs Community Forums
August 10, 2021 - With the official docker image, I have seen a number of environment variables mentioned that I cannot find any documentation for. One example is GF_AUTH_GENERIC_OAUTH_NAME . I would like to be able to control the team …
🌐
Grafana
grafana.com › docs › grafana › latest › setup-grafana › configure-docker
Configure a Grafana Docker image | Grafana documentation
The following command runs Grafana Enterprise on port 3000 in detached mode and installs the custom plugin, which is specified as a URL parameter in the GF_PLUGINS_PREINSTALL environment variable. ... docker run -d -p 3000:3000 --name=grafana \ -e "GF_PLUGINS_PREINSTALL=custom-plugin@@http://plugin-domain.com/my-custom-plugin.zip,grafana-clock-panel" \ grafana/grafana-enterprise
Discussions

amazon web services - How do I change Grafana docker container environment variables on AWS Fargate to use a mysql database - Stack Overflow
How do I change Grafana Docker container environment variables on AWS Fargate to use a mysql database? I am very new to AWS and containers. Is it through the cmd line? When I type "docker ps -... More on stackoverflow.com
🌐 stackoverflow.com
Changed Environment Variables do not get picked up in Grafana even though the `env` command has the updated values
Create the updated docker-compose.yml file using make build and bring the container up using make run · This should make the container available on the same URL, however when one tries to login with the updated GF_SECURITY_ADMIN_PASSWORD, the login does not work. Grafana logs me in only with the previous password set ... Assuming the container is brought down and brought back up again, the new environment variables ... More on github.com
🌐 github.com
30
May 17, 2022
Grafana in Docker: not all Environment variables are transferred to grafana.ini - Stack Overflow
I have quite a weird problem and I'm really not sure where it comes from. I'm trying to run a Grafana inside a Docker Container and want to set some grafana.ini values through Environment Variables... More on stackoverflow.com
🌐 stackoverflow.com
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.com
🌐 r/grafana
3
7
April 19, 2020
🌐
Grafana
grafana.com › docs › grafana › latest › setup-grafana › installation › docker
Run Grafana Docker image | Grafana documentation
# create a directory for your data ... "$PWD/data:/var/lib/grafana" \ grafana/grafana-enterprise · Grafana supports specifying custom configuration settings using environment variables....
🌐
Grafana
grafana.com › docs › grafana › latest › setup-grafana › configure-grafana
Configure Grafana | Grafana documentation
Set the name of the Grafana server instance. Used in logging, internal metrics, and clustering info. Defaults to: ${HOSTNAME}, which uses the value of the environment variable HOSTNAME, if that is empty or doesn’t exist Grafana tries to use system calls to get the machine name.
🌐
DeepWiki
deepwiki.com › grafana › grafana-docker › 2.2-environment-variables-and-configuration
Environment Variables and Configuration | grafana/grafana-docker | DeepWiki
May 18, 2025 - Grafana itself can be configured using environment variables following the pattern GF_<SECTION>_<KEY>, where:
🌐
Docker Hub
hub.docker.com › r › qapps › grafana-docker
qapps/grafana-docker - Docker Image
Datasource configuration via environment variables, example: docker run -d -p 3000:3000 \ -e "DS_NAME=datasource_name" \ -e "DS_TYPE=datasource type (CloudWatch, Graphite, InfluxDB, etc...)" \ -e "DS_ACCESS=proxy or direct" \ -e "DS_URL=datasource url" \ -e "DS_PASS=pass" \ -e "DS_USER=user" \ -e "DS_DB=dbname" \ -e "DS_AUTH=false" \ -e "DS_AUTH_USER=" \ -e "AUTH_PASS=" \ -e "DS_IS_DEFAULT=false" \ -e "DS_JSON_DATA=null" \ qapps/grafana-docker Copy
🌐
I2group
i2group.github.io › analyze-deployment-tooling › versions › 2.9.1 › content › images-and-containers › grafana.html
Grafana
A Grafana container uses a Grafana image maintained by i2 Group on Docker Hub. In the docker run command, you can use -e to pass environment variables to Grafana on the container.
Find elsewhere
🌐
Hostinger
hostinger.com › home › tutorials › how to run a grafana docker image?
How to run the Grafana Docker Image
June 19, 2025 - GF_USERS_ALLOW_SIGN_UP – Enables or disables user sign-ups. GF_INSTALL_PLUGINS – Auto-installs plugins at startup, defined in a comma-separated list. To pass environment variables, use the -e flag in your docker run command:
🌐
GitHub
github.com › grafana › grafana › issues › 49055
Changed Environment Variables do not get picked up in Grafana even though the `env` command has the updated values · Issue #49055 · grafana/grafana
May 17, 2022 - Use make build to generated docker-compose.yml file and then make run to bring the container up. The GF_SECURITY_ADMIN_USER, GF_SECURITY_ADMIN_PASSWORD are set via the conf/grafana/.env.
Author: grafana
🌐
Collabnix
collabnix.com › run-and-configure-grafana-docker-image
Run And Configure Grafana Docker Image - Collabnix
February 13, 2023 - Here’s an example of using environment variables: docker run -d -p 3000:3000 \ -e "GF_SECURITY_ADMIN_PASSWORD=secret" \ -e "GF_USERS_ALLOW_SIGN_UP=false" \ grafana/grafana
🌐
How-To Geek
howtogeek.com › home › cloud › how to run grafana in a docker container
How to Run Grafana In a Docker Container
March 19, 2022 - The volume mount means the directory's ... the container stops or your host restarts. You can override Grafana's config keys by setting environment variables when you start your container....
🌐
Earthly
earthly.dev › blog › running-grafana-in-docker
Make It Observable: Running Grafana in Docker - Earthly Blog
July 19, 2023 - docker run -d --name=sample_grafana -v grafana-storage:/var/lib/grafana \ -p 3000:3000 -e GF_DEFAULT_INSTANCE_NAME=my-grafana \ -e GF_SECURITY_ADMIN_USER=demo -e \ GF_SECURITY_ADMIN_PASSWORD__FILE=/run/secrets/password grafana/grafana · Setting custom configurations with environment variables can be a drawn-out process, with each variable needing to be declared.
🌐
Reddit
reddit.com › r/grafana › how to set allow_embedding=true?
r/grafana on Reddit: How to set ALLOW_EMBEDDING=true?
April 19, 2020 -

Hello,

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!

🌐
Last9
last9.io › blog › grafana-and-docker
Grafana and Docker: Setup, Configure, and Monitor (2026) | Last9
2 weeks ago - While Grafana is secure out of the box, Docker adds an extra layer of complexity. Make sure to: Use Environment Variables for sensitive data like passwords and API keys.
🌐
Grafana
grafana.com › set up your environment › set up your docker environment
Set up your Docker development environment | Grafana Plugin Tools
To override this image, alter the docker-compose.yaml by changing the grafana_image build argument: ... This example assigns the environment variable GRAFANA_IMAGE to the build arg grafana_image with a default value of grafana.
🌐
Grafana
community.grafana.com › configuration
Changed variable in .env file is not picked up on container restart - Configuration - Grafana Labs Community Forums
August 2, 2024 - I try to change the setting server / root_url to a different value. I’m running Grafana v11.1.2 in a docker container (using docker compose) on a Raspberry Pi / debian. In a .env file in the directory where my docker-compose.yml file lives I have changed HOST=solarto HOST=solar.