{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/304","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/304/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/304/events","html_url":"https://github.com/jwilder/nginx-proxy/issues/304","id":119333508,"number":304,"title":"nginx.conf does not get updated with overlay network IPs","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-11-29T03:35:24Z","updated_at":"2016-02-17T12:24:21Z","closed_at":null,"body":"I created an overlay-network for my swarm and can ping and wget a hello-world webserver in the swarm from the reverseproxy container.\r\n\r\nThis is my `/etc/hosts`\r\n\r\n```\r\n10.0.1.7        mynetwork_hello_1\r\n```\r\n\r\n\r\nAnd this the relevant part of `nginx.conf`\r\n\r\n```\r\nupstream ~my.test.com {\r\n                        # mynetwork_hello_1\r\n                        server :80;\r\n}\r\n```\r\n\r\nAs you can see the IP is missing.\r\n\r\nLooks like somewhere [around here](https://github.com/jwilder/nginx-proxy/blob/master/nginx.tmpl#L6) the IP does not get written correctly.\r\n\r\nAny idea how to fix this or is this an issue with `docker-gen`?\r\n\r\nTested on: `docker 1.9.1, docker-compose 1.5.1`\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/comments/185176837","html_url":"https://github.com/jwilder/nginx-proxy/issues/304#issuecomment-185176837","issue_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/304","id":185176837,"user":{"login":"gabriel403","id":118638,"avatar_url":"https://avatars.githubusercontent.com/u/118638?v=3","gravatar_id":"","url":"https://api.github.com/users/gabriel403","html_url":"https://github.com/gabriel403","followers_url":"https://api.github.com/users/gabriel403/followers","following_url":"https://api.github.com/users/gabriel403/following{/other_user}","gists_url":"https://api.github.com/users/gabriel403/gists{/gist_id}","starred_url":"https://api.github.com/users/gabriel403/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabriel403/subscriptions","organizations_url":"https://api.github.com/users/gabriel403/orgs","repos_url":"https://api.github.com/users/gabriel403/repos","events_url":"https://api.github.com/users/gabriel403/events{/privacy}","received_events_url":"https://api.github.com/users/gabriel403/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T12:24:21Z","updated_at":"2016-02-17T12:24:21Z","body":"Yeh I just run into this too, same as @Ant59, it seems both the proxy and any webapp need starting in the singular way, with docker run rather than with docker-compose"}}