{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/docker-gen/issues/94","labels_url":"https://api.github.com/repos/jwilder/docker-gen/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/docker-gen/issues/94/comments","events_url":"https://api.github.com/repos/jwilder/docker-gen/issues/94/events","html_url":"https://github.com/jwilder/docker-gen/issues/94","id":89945938,"number":94,"title":"Support for multiple DOCKER_HOST?","user":{"login":"viranch","id":302106,"avatar_url":"https://avatars.githubusercontent.com/u/302106?v=3","gravatar_id":"","url":"https://api.github.com/users/viranch","html_url":"https://github.com/viranch","followers_url":"https://api.github.com/users/viranch/followers","following_url":"https://api.github.com/users/viranch/following{/other_user}","gists_url":"https://api.github.com/users/viranch/gists{/gist_id}","starred_url":"https://api.github.com/users/viranch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viranch/subscriptions","organizations_url":"https://api.github.com/users/viranch/orgs","repos_url":"https://api.github.com/users/viranch/repos","events_url":"https://api.github.com/users/viranch/events{/privacy}","received_events_url":"https://api.github.com/users/viranch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-21T18:50:28Z","updated_at":"2015-06-25T14:24:41Z","closed_at":null,"body":"It'd be _really_ convenient if docker-gen could support multiple (comma-separated?) values in `DOCKER_HOST` environment variable to be able to cleanly generate load balancer configs in a setup where backends are on different hosts.\r\n\r\nCurrently https://github.com/jwilder/docker-register & https://github.com/jwilder/docker-discover kinda do the trick but has some limitations:\r\n\r\n1. No SPDY support in HAProxy (which could be a deal breaker for many production systems).\r\n2. There is no way to access more properties of remote containers unless docker-register somehow adds these keys in etcd.\r\n\r\nI am currently working on the following forks to overcome above limitations, but I'm already feeling dirty now:\r\n\r\n1. docker-register that registers all container ENVs with etcd\r\n2. docker-discover that replaces HAProxy with Nginx using `VIRTUAL_HOST` from ENVs in etcd and nginx template from https://github.com/jwilder/nginx-proxy\r\n\r\nHowever, if we can add support for multiple `DOCKER_HOST`s, life will be super easy; I can just use jwilder/nginx-proxy without having to do etcd+register+discover.\r\n\r\nPS: I'd rather implement this feature then do the 2 forks described above. I'd love second opinion on the idea before I can start working."},"comment":{"url":"https://api.github.com/repos/jwilder/docker-gen/issues/comments/115275039","html_url":"https://github.com/jwilder/docker-gen/issues/94#issuecomment-115275039","issue_url":"https://api.github.com/repos/jwilder/docker-gen/issues/94","id":115275039,"user":{"login":"md5","id":76367,"avatar_url":"https://avatars.githubusercontent.com/u/76367?v=3","gravatar_id":"","url":"https://api.github.com/users/md5","html_url":"https://github.com/md5","followers_url":"https://api.github.com/users/md5/followers","following_url":"https://api.github.com/users/md5/following{/other_user}","gists_url":"https://api.github.com/users/md5/gists{/gist_id}","starred_url":"https://api.github.com/users/md5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/md5/subscriptions","organizations_url":"https://api.github.com/users/md5/orgs","repos_url":"https://api.github.com/users/md5/repos","events_url":"https://api.github.com/users/md5/events{/privacy}","received_events_url":"https://api.github.com/users/md5/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T14:24:41Z","updated_at":"2015-06-25T14:24:41Z","body":"Also, have a look at the blog post linked from this comment: https://github.com/jwilder/docker-gen/issues/68#issuecomment-90710788"}}