Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding toml configuration with environment variables #650

Closed
jmahowald opened this issue Aug 29, 2016 · 2 comments
Closed

Overriding toml configuration with environment variables #650

jmahowald opened this issue Aug 29, 2016 · 2 comments

Comments

@jmahowald
Copy link

volume mounts for the toml files can be difficult in a cluster. Rancher or swarm for instance. Yes, one can setup volume drivers, but that is a non-trivial setup.

Please consider using something like viper or goconfig to allow you to easily allow environment variables to override. For instance, in my case, I'd love to be able to have an env variable like

-e TRAEFIK_CONSULCATALOG_ENDPOINT=$CONSUL_ADDR

In the meantime, I have a dockerfile that extends yours adds in the toml, and allows changes via dockerize

@emilevauge
Copy link
Member

Hi, you can override every parameters using arguments.

@jmahowald
Copy link
Author

Great. I was going to ask the convention, but I see them all in --help now.
For anyone else who comes across this thread, the setting I'd want would be
--consulcatalog.endpoint Consul server endpoint (default "127.0.0.1:8500")

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants