{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1851","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1851/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1851/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1851/events","html_url":"https://github.com/gogits/gogs/issues/1851","id":113868008,"number":1851,"title":"Docker hostnames for postgres","user":{"login":"ryanwr","id":9446239,"avatar_url":"https://avatars.githubusercontent.com/u/9446239?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanwr","html_url":"https://github.com/ryanwr","followers_url":"https://api.github.com/users/ryanwr/followers","following_url":"https://api.github.com/users/ryanwr/following{/other_user}","gists_url":"https://api.github.com/users/ryanwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwr/subscriptions","organizations_url":"https://api.github.com/users/ryanwr/orgs","repos_url":"https://api.github.com/users/ryanwr/repos","events_url":"https://api.github.com/users/ryanwr/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-28T16:58:01Z","updated_at":"2015-10-28T17:34:05Z","closed_at":"2015-10-28T17:34:05Z","body":"Hello,\r\n\r\nUnder the new docker build system post 0.6.15 I can't get hostnames to work for the postgres host.\r\n\r\nI'm using docker-compose to create a postgres and a gogs instance and referring to the postgres host by name results in \"dial tcp: lookup postgres on 8.8.8.8:53: no such host\", however using the internal docker ip works fine. Using a hostname in 0.6.15 works exactly as intended.\r\n\r\nThe only thing I can think of is the s6 supervisor messing with something.\r\n\r\nThanks for the help"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/151921062","html_url":"https://github.com/gogits/gogs/issues/1851#issuecomment-151921062","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1851","id":151921062,"user":{"login":"ryanwr","id":9446239,"avatar_url":"https://avatars.githubusercontent.com/u/9446239?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanwr","html_url":"https://github.com/ryanwr","followers_url":"https://api.github.com/users/ryanwr/followers","following_url":"https://api.github.com/users/ryanwr/following{/other_user}","gists_url":"https://api.github.com/users/ryanwr/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwr/subscriptions","organizations_url":"https://api.github.com/users/ryanwr/orgs","repos_url":"https://api.github.com/users/ryanwr/repos","events_url":"https://api.github.com/users/ryanwr/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwr/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:34:05Z","updated_at":"2015-10-28T17:34:05Z","body":"@tboerger Your first suggest worked perfectly thanks!\r\n\r\nFor reference, is there a way to use hostnames and disable socat? If I needed to use two containers exposing the same port for example?"}}