{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/536","labels_url":"https://api.github.com/repos/docker/compose/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/536/comments","events_url":"https://api.github.com/repos/docker/compose/issues/536/events","html_url":"https://github.com/docker/compose/issues/536","id":45598975,"number":536,"title":"database host naming conventions","user":{"login":"edgecaselabs","id":953369,"avatar_url":"https://avatars.githubusercontent.com/u/953369?v=3","gravatar_id":"","url":"https://api.github.com/users/edgecaselabs","html_url":"https://github.com/edgecaselabs","followers_url":"https://api.github.com/users/edgecaselabs/followers","following_url":"https://api.github.com/users/edgecaselabs/following{/other_user}","gists_url":"https://api.github.com/users/edgecaselabs/gists{/gist_id}","starred_url":"https://api.github.com/users/edgecaselabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgecaselabs/subscriptions","organizations_url":"https://api.github.com/users/edgecaselabs/orgs","repos_url":"https://api.github.com/users/edgecaselabs/repos","events_url":"https://api.github.com/users/edgecaselabs/events{/privacy}","received_events_url":"https://api.github.com/users/edgecaselabs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/kind/docs","name":"kind/docs","color":"fbca04"},{"url":"https://api.github.com/repos/docker/compose/labels/kind/question","name":"kind/question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-10-13T00:45:18Z","updated_at":"2015-10-27T19:27:55Z","closed_at":"2015-10-27T19:27:55Z","body":"I'm trying to figure out how the automatic host names work. The django instructions specify using db_1 as the hostname for accessing the db from the web app.  This works fine when using the image from the docs:\r\nimage: postgres\r\n\r\nHowever, when I switch over to another postgres image (such as image: helmi03/docker-postgis) the db_1 designation no longer seems to work.\r\n\r\n\"web_1 | django.db.utils.OperationalError: could not translate host name \"db_1\" to address: Name or service not known\"\r\n\r\n\r\nAny insight into how these host names are setup? What's different about my helmi03/docker-postgis dockerfile compared to the \"standard\" postgres image?\r\n\r\nThis is my first use with docker/fig, so I'm sure I'm missing something fundamental. "},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/151617715","html_url":"https://github.com/docker/compose/issues/536#issuecomment-151617715","issue_url":"https://api.github.com/repos/docker/compose/issues/536","id":151617715,"user":{"login":"dnephin","id":442180,"avatar_url":"https://avatars.githubusercontent.com/u/442180?v=3","gravatar_id":"","url":"https://api.github.com/users/dnephin","html_url":"https://github.com/dnephin","followers_url":"https://api.github.com/users/dnephin/followers","following_url":"https://api.github.com/users/dnephin/following{/other_user}","gists_url":"https://api.github.com/users/dnephin/gists{/gist_id}","starred_url":"https://api.github.com/users/dnephin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnephin/subscriptions","organizations_url":"https://api.github.com/users/dnephin/orgs","repos_url":"https://api.github.com/users/dnephin/repos","events_url":"https://api.github.com/users/dnephin/events{/privacy}","received_events_url":"https://api.github.com/users/dnephin/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T19:27:55Z","updated_at":"2015-10-27T19:27:55Z","body":"Looks like this was resolved. Going to close it since there hasn't been any activity, and I was able to complete the rails tutorial successfully."}}