Grafana – Config Overridden from Environment Variable

dockerenvironment-variablesgrafana

I'm trying to follow Configure with environment variables / root_url

# grep GF_ROOT_URL docker-compose.override.yml 
                        - GF_ROOT_URL=https://g.x.com/
# 

yet, when I invite users into Grafana, they're getting invited to localhost (instead of root_url) in their invitation…

Please advise)

Best Answer

The variable name is GF_<SectionName>_<KeyName>, so it's GF_SERVER_ROOT_URL, not GF_ROOT_URL:

# grep ROOT_URL docker-compose.override.yml 
                        - GF_SERVER_ROOT_URL=https://g.x.com/
#