datawire / bakerstreet

Baker Street is a HAProxy based routing engine for microservice architectures
http://bakerstreet.io
Apache License 2.0
226 stars 22 forks source link

Add support for referencing environment variables in config #7

Open plombardi89 opened 9 years ago

plombardi89 commented 9 years ago

Docker (and its cousins) do cool stuff like add link information to a containers environment variables, for example, if you specify a --link mysql:db' in therun` command you will be given that information in the container such that it can be retrieved via an environment variable like $DB_PORT_3306_TCP_ADDR.

This feature would expose a configuration file syntax similar to Ruby On Rails <%= ENV[''] => configuration string that will automatically query the environment variables if present rather than rely on a hard coded value.