How to configure Grafana (docker) behind haproxy

Hello,

I’m trying to setup the Grafana 6.2.2 docker image behind haproxy but, despite following the documentation, I am having a hard time figuring out to pass the configuration to Grafana.

I going with the “subpath” config. Grafana will be available via <host>/whatever url.

From the doc:

[server]
domain = foo.bar
root_url = %(protocol)s://%(domain)s/grafana/

Where do I set this Grafana configuration? How do I pass it to the Grafana image and/or container?

As for the domain section, is it mandatory? What if the host is an IP address? What if this address changes?

That’s a lot of question (and a lot of confusion on my side) :slight_smile:

Thank you in advance for your help.

Mila

1 Like

Up :slight_smile:

Any help on this one ? :frowning:

Hello ,

did you every got the answer ? Please share I am trying to do the same !