{"action":"created","issue":{"url":"https://api.github.com/repos/mesg-foundation/core/issues/533","repository_url":"https://api.github.com/repos/mesg-foundation/core","labels_url":"https://api.github.com/repos/mesg-foundation/core/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/mesg-foundation/core/issues/533/comments","events_url":"https://api.github.com/repos/mesg-foundation/core/issues/533/events","html_url":"https://github.com/mesg-foundation/core/issues/533","id":367572047,"node_id":"MDU6SXNzdWUzNjc1NzIwNDc=","number":533,"title":"Cannot connect to other dependencies inside a service","user":{"login":"antho1404","id":1783126,"node_id":"MDQ6VXNlcjE3ODMxMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/1783126?v=4","gravatar_id":"","url":"https://api.github.com/users/antho1404","html_url":"https://github.com/antho1404","followers_url":"https://api.github.com/users/antho1404/followers","following_url":"https://api.github.com/users/antho1404/following{/other_user}","gists_url":"https://api.github.com/users/antho1404/gists{/gist_id}","starred_url":"https://api.github.com/users/antho1404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antho1404/subscriptions","organizations_url":"https://api.github.com/users/antho1404/orgs","repos_url":"https://api.github.com/users/antho1404/repos","events_url":"https://api.github.com/users/antho1404/events{/privacy}","received_events_url":"https://api.github.com/users/antho1404/received_events","type":"User","site_admin":false},"labels":[{"id":838978234,"node_id":"MDU6TGFiZWw4Mzg5NzgyMzQ=","url":"https://api.github.com/repos/mesg-foundation/core/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"antho1404","id":1783126,"node_id":"MDQ6VXNlcjE3ODMxMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/1783126?v=4","gravatar_id":"","url":"https://api.github.com/users/antho1404","html_url":"https://github.com/antho1404","followers_url":"https://api.github.com/users/antho1404/followers","following_url":"https://api.github.com/users/antho1404/following{/other_user}","gists_url":"https://api.github.com/users/antho1404/gists{/gist_id}","starred_url":"https://api.github.com/users/antho1404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antho1404/subscriptions","organizations_url":"https://api.github.com/users/antho1404/orgs","repos_url":"https://api.github.com/users/antho1404/repos","events_url":"https://api.github.com/users/antho1404/events{/privacy}","received_events_url":"https://api.github.com/users/antho1404/received_events","type":"User","site_admin":false},"assignees":[{"login":"antho1404","id":1783126,"node_id":"MDQ6VXNlcjE3ODMxMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/1783126?v=4","gravatar_id":"","url":"https://api.github.com/users/antho1404","html_url":"https://github.com/antho1404","followers_url":"https://api.github.com/users/antho1404/followers","following_url":"https://api.github.com/users/antho1404/following{/other_user}","gists_url":"https://api.github.com/users/antho1404/gists{/gist_id}","starred_url":"https://api.github.com/users/antho1404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antho1404/subscriptions","organizations_url":"https://api.github.com/users/antho1404/orgs","repos_url":"https://api.github.com/users/antho1404/repos","events_url":"https://api.github.com/users/antho1404/events{/privacy}","received_events_url":"https://api.github.com/users/antho1404/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-10-07T16:49:49Z","updated_at":"2018-10-08T08:59:04Z","closed_at":null,"author_association":"MEMBER","body":"When creating other dependencies for a service, the goal is to be able to connect these other dependencies but right now there is no way to do that.\r\n\r\nLet's take the following service:\r\n```yml\r\nname: \"influxDB\"\r\ndependencies:\r\n  influxdb:\r\n    image: influxdb\r\n    ports:\r\n      - \"8086\"\r\n    volumes:\r\n      - /var/lib/influxdb\r\n```\r\n\r\nIn my application I should be able to connect to endpoint of this dependency with something like `influxdb:8086` but instead, to connect to this dependency we need to access using the container name which is based on the service hash and so there is no way to predict it directly.\r\n\r\nIn this example I need to connect to this endpoint `core-e00a68dcd22cd77d996ce540e9113feaa75f92e8-influxdb.1.xd6ps2z5xt2ye81c36hwvb13k:8086` or `core-e00a68dcd22cd77d996ce540e9113feaa75f92e8-influxdb:8086`\r\n\r\nI don't really mind having to use this long name if it's at least given in an env variable like \r\n\r\n```\r\nINFLUXDB_HOST_1=core-e00a68dcd22cd77d996ce540e9113feaa75f92e8-influxdb.1.xd6ps2z5xt2ye81c36hwvb13k # the one created for the specific docker task\r\nINFLUXDB_HOST=core-e00a68dcd22cd77d996ce540e9113feaa75f92e8-influxdb # the one associated to the service\r\n```\r\n\r\nOr even better be able to access the host `influxdb` directly but this can be complicated and can create some problems if names already exists."},"comment":{"url":"https://api.github.com/repos/mesg-foundation/core/issues/comments/427763735","html_url":"https://github.com/mesg-foundation/core/issues/533#issuecomment-427763735","issue_url":"https://api.github.com/repos/mesg-foundation/core/issues/533","id":427763735,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzc2MzczNQ==","user":{"login":"NicolasMahe","id":5823445,"node_id":"MDQ6VXNlcjU4MjM0NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/5823445?v=4","gravatar_id":"","url":"https://api.github.com/users/NicolasMahe","html_url":"https://github.com/NicolasMahe","followers_url":"https://api.github.com/users/NicolasMahe/followers","following_url":"https://api.github.com/users/NicolasMahe/following{/other_user}","gists_url":"https://api.github.com/users/NicolasMahe/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasMahe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasMahe/subscriptions","organizations_url":"https://api.github.com/users/NicolasMahe/orgs","repos_url":"https://api.github.com/users/NicolasMahe/repos","events_url":"https://api.github.com/users/NicolasMahe/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasMahe/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T08:59:04Z","updated_at":"2018-10-08T08:59:04Z","author_association":"MEMBER","body":"What about the API version?"}}
{"actor":{"display_login":"NicolasMahe"}}