Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Add support for prefix in services environment variables #224

Open
blop opened this issue Aug 24, 2017 · 0 comments
Open

Add support for prefix in services environment variables #224

blop opened this issue Aug 24, 2017 · 0 comments

Comments

@blop
Copy link

blop commented Aug 24, 2017

Currently all the environment variables that needs to be set on the application services are NOT prefixed. This could cause some collision with some other configurations.

For example, you specify we need to use the generic "OPTION" environment variable to set custom options.

I'd suggest to add something like SERVICE_ENV_PREFIX (or some other name), which could be empty by default to ensure backward compatiblity.

This way one could set SERVICE_ENV_PREFIX="HAPROXY_" on the dockercloud/haproxy service, and then set backend configuration using prefixed environment variables like HAPROXY_VIRTUAL_HOST instead of VIRTUAL_HOST.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant