Card #3483 · Grafana
Difficulty configuring Grafana with reverse proxies and Docker
Users are struggling to correctly configure Grafana when running it behind Nginx or within Docker containers. Common issues include incorrect root_url settings, failure to pick up environment variables, and connectivity errors when using subpaths.
Pain score
0.19/ 1.00 · weighted product of four components
Reach1.00distinct authors (log-normalized)
Recency1.00freshness decay, half-life months
Engagement0.56upvotes + comments, normalized
Monetization0.25willingness-to-pay cues in evidence
§ Evidence — 4 verified quotes
My docker images of grafana is not able to set proxy env. We need proxy to push notification.
I am running grafana as one container and nginx as another container. They are running in the same docker network. My configs are as below: grafana.ini root_url: http://containername:3000/grafana/ Nginx config: location /grafana/ { proxy_pass http://containername:3000/; }
grafana doesn’t seem to pickup those settings from environment variables set through docker-compose
I configured root url as http://XXXX.com/grafana in grafana.ini configuration. We are getting above error while accessing on http://XXXX.com/grafana
Comments are a Pro feature — join the conversation, share what you've shipped, hear what others are building.
Upgrade to Pro