[Feature Request] Support _FILE suffix in docker images

(Niklas Mollenhauer) #1

There is a convention on official docker images that environment variables that end in _FILE are read as a file and then assigned to a variable without the _FILE suffix. For example, setting the environment variable ELASTIC_PASSWORD_FILE to /run/secrets/secret-password will read the file /run/secrets/secret-password and assign its contents to the environment variable ELASTIC_PASSWORD. This is especially handy when using Docker secrets.

Related issue on grafana: https://github.com/grafana/grafana-docker/pull/166

(Mark Walkom) #2

Thanks for the idea, do you mind putting it into https://github.com/elastic/elasticsearch-docker/issues?

(Niklas Mollenhauer) #3

Done. Issue is at: https://github.com/elastic/elasticsearch-docker/issues/183

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.