Open spuder opened 4 years ago
Hi @spuder ,
Yes, for proper solution we need to support env variables, as Grafana doing that in own image.
But why not copy whole https://github.com/go-graphite/docker-go-graphite/tree/master/conf/etc/grafana to directory, edit files and mount to /etc/grafana
?
Thanks for making these docker containers.
What is the recommended practice to change config files? Traditionally I've used the legacy 'bind' mount to point to files on the host managed by puppet.
docker run -it -v /etc/grafana/ldap.toml:/etc/grafana/ldap.toml gographite/go-graphite:1.0.4
However because this container uses the new volumes, I'm not able to use the older bind mounts.
https://docs.docker.com/storage/
Some people suggest using busybox to inject config files
https://stackoverflow.com/questions/37468788/what-is-the-right-way-to-add-data-to-an-existing-named-volume-in-docker
This feels unnecessarily complicated.
How do you recommend users change config files inside the docker container?