{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul-template/issues/549","repository_url":"https://api.github.com/repos/hashicorp/consul-template","labels_url":"https://api.github.com/repos/hashicorp/consul-template/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul-template/issues/549/comments","events_url":"https://api.github.com/repos/hashicorp/consul-template/issues/549/events","html_url":"https://github.com/hashicorp/consul-template/issues/549","id":135226903,"number":549,"title":"The IP address resolved is wrong","user":{"login":"devotox","id":2064846,"avatar_url":"https://avatars.githubusercontent.com/u/2064846?v=3","gravatar_id":"","url":"https://api.github.com/users/devotox","html_url":"https://github.com/devotox","followers_url":"https://api.github.com/users/devotox/followers","following_url":"https://api.github.com/users/devotox/following{/other_user}","gists_url":"https://api.github.com/users/devotox/gists{/gist_id}","starred_url":"https://api.github.com/users/devotox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devotox/subscriptions","organizations_url":"https://api.github.com/users/devotox/orgs","repos_url":"https://api.github.com/users/devotox/repos","events_url":"https://api.github.com/users/devotox/events{/privacy}","received_events_url":"https://api.github.com/users/devotox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-21T16:57:04Z","updated_at":"2016-02-21T21:21:42Z","closed_at":"2016-02-21T20:44:32Z","body":"The IP address that keeps going into my templates are the ip address of registrator and not the container itself which means nginx routes to the wrong place ..."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul-template/issues/comments/186921004","html_url":"https://github.com/hashicorp/consul-template/issues/549#issuecomment-186921004","issue_url":"https://api.github.com/repos/hashicorp/consul-template/issues/549","id":186921004,"user":{"login":"devotox","id":2064846,"avatar_url":"https://avatars.githubusercontent.com/u/2064846?v=3","gravatar_id":"","url":"https://api.github.com/users/devotox","html_url":"https://github.com/devotox","followers_url":"https://api.github.com/users/devotox/followers","following_url":"https://api.github.com/users/devotox/following{/other_user}","gists_url":"https://api.github.com/users/devotox/gists{/gist_id}","starred_url":"https://api.github.com/users/devotox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devotox/subscriptions","organizations_url":"https://api.github.com/users/devotox/orgs","repos_url":"https://api.github.com/users/devotox/repos","events_url":"https://api.github.com/users/devotox/events{/privacy}","received_events_url":"https://api.github.com/users/devotox/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T21:21:42Z","updated_at":"2016-02-21T21:21:42Z","body":"My registrator is using `-internal` here is the compose file\r\n\r\n```\r\n  registrator:\r\n        network_mode: host\r\n        container_name: doctify-registrator\r\n        image: gliderlabs/registrator\r\n        command: -internal consul://consul:8500\r\n        volumes:\r\n            - /var/run/docker.sock:/tmp/docker.sock\r\n        depends_on:\r\n            - consul\r\n        env_file:\r\n            - ./shared/dev.env\r\n    consul:\r\n        container_name: doctify-consul\r\n        command: agent -data-dir /data -server -bootstrap -protocol 3\r\n        build:\r\n            context: consul\r\n            dockerfile: consul-dockerfile\r\n        #volumes:\r\n        #    - consul_data:/data\r\n        ports:\r\n            - \"53:53\"\r\n            - \"8300:8300\"\r\n            - \"8301:8301\"\r\n            - \"8302:8302\"\r\n            - \"8400:8400\"\r\n            - \"8500:8500\"\r\n            - \"8600:8600\"\r\n        env_file:\r\n            - ./shared/dev.env\r\n    consul-template:\r\n        network_mode: host\r\n        container_name: doctify-consul-template\r\n        command: -dry -consul consul:8500 -template \"/etc/nginx/templates/upstream_servers.ctmpl:/etc/nginx/conf.d/upstream_servers.conf\"\r\n        build:\r\n            context: consul\r\n            dockerfile: consul-template-dockerfile\r\n        volumes:\r\n            - /var/run/docker.sock:/tmp/docker.sock\r\n        volumes_from:\r\n            - server\r\n        depends_on:\r\n            - consul\r\n            - registrator\r\n        env_file:\r\n            - ./shared/dev.env\r\n```\r\n\r\nI just get this error\r\n\r\n```\r\n~/D/platform >> docker-compose up --force-recreate registrator\r\nRecreating doctify-consul\r\nRecreating doctify-registrator\r\nAttaching to doctify-registrator\r\ndoctify-registrator | 2016/02/21 21:20:09 Starting registrator v6 ...\r\ndoctify-registrator | 2016/02/21 21:20:10 consul: Get http://consul:8500/v1/status/leader: dial tcp: lookup consul: no such host\r\ndoctify-registrator exited with code 1\r\n~/D/platform >>\r\n```"}}