docker-graphite-statsd icon indicating copy to clipboard operation
docker-graphite-statsd copied to clipboard

local_settings from ENV

Open jareware opened this issue 8 years ago • 3 comments

Would be really handy if you could provide config overrides in /opt/graphite/webapp/graphite/local_settings.py through the environment as well, would go nicely in docker-compose.yml for instance.

jareware avatar Nov 13 '15 18:11 jareware

Nice suggestion. Thanks.

hopsoft avatar Nov 13 '15 20:11 hopsoft

A more concrete example, this would be really nice:

graphite:
  image: hopsoft/graphite-statsd
  environment:
    - TIME_ZONE=Europe/Helsinki

Instead of my current:

graphite:
  image: hopsoft/graphite-statsd
  volumes:
    - ./local_settings.py:/opt/graphite/webapp/graphite/local_settings.py

Because I'd imagine a majority of users need to set at least TIME_ZONE to get sensible timestamps on their UI. :)

jareware avatar Nov 14 '15 09:11 jareware

URL_PREFIX is another one that would be nice to be passed as an environment variable

thenewguy avatar Jun 13 '16 15:06 thenewguy