{"action":"created","issue":{"url":"https://api.github.com/repos/yyyar/gobetween/issues/46","repository_url":"https://api.github.com/repos/yyyar/gobetween","labels_url":"https://api.github.com/repos/yyyar/gobetween/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/yyyar/gobetween/issues/46/comments","events_url":"https://api.github.com/repos/yyyar/gobetween/issues/46/events","html_url":"https://github.com/yyyar/gobetween/issues/46","id":191761223,"number":46,"title":"Error: dial tcp :0: getsockopt: connection refused","user":{"login":"honzatrtik","id":1225333,"avatar_url":"https://avatars.githubusercontent.com/u/1225333?v=3","gravatar_id":"","url":"https://api.github.com/users/honzatrtik","html_url":"https://github.com/honzatrtik","followers_url":"https://api.github.com/users/honzatrtik/followers","following_url":"https://api.github.com/users/honzatrtik/following{/other_user}","gists_url":"https://api.github.com/users/honzatrtik/gists{/gist_id}","starred_url":"https://api.github.com/users/honzatrtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honzatrtik/subscriptions","organizations_url":"https://api.github.com/users/honzatrtik/orgs","repos_url":"https://api.github.com/users/honzatrtik/repos","events_url":"https://api.github.com/users/honzatrtik/events{/privacy}","received_events_url":"https://api.github.com/users/honzatrtik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T20:18:14Z","updated_at":"2016-11-25T20:44:12Z","closed_at":null,"body":"Hello,\r\nIm trying gobetween on my dev machine - Im using `docker-machine` & `boot2docker (1.12.3)`\r\n\r\nThis is my simple docker compose:\r\n```yaml\r\nversion: '2'\r\n\r\nnetworks:\r\n  backend:\r\n\r\nservices:\r\n  app:\r\n    image: php:7.0-alpine\r\n    expose:\r\n      - 8080\r\n    volumes:\r\n      - .:/data\r\n    command: php -S 0.0.0.0:8080 /data/index.php\r\n    networks:\r\n      - backend\r\n    labels:\r\n      - \"scale.app=true\"\r\n\r\n  gobetween:\r\n    image: yyyar/gobetween\r\n    depends_on:\r\n      - app\r\n    ports:\r\n      - \"80:80\"\r\n    volumes:\r\n      - \"./gobetween/conf:/etc/gobetween/conf/:rw\"\r\n      - \"/var/run/docker.sock:/var/run/docker.sock\"\r\n    networks:\r\n      - backend\r\n```\r\n\r\nGobetween conf looks like this:\r\n\r\n```ini\r\n[logging]\r\nlevel = \"debug\"\r\n\r\n[servers.app]\r\nbind = \"0.0.0.0:80\"\r\nprotocol = \"tcp\"\r\nbalance = \"roundrobin\"\r\n\r\n  [servers.app.discovery]\r\n    interval = \"10s\"\r\n    timeout = \"2s\"\r\n    kind = \"docker\"\r\n    docker_endpoint = \"unix://var/run/docker.sock\"  # Docker / Swarm API\r\n    docker_container_label = \"scale.app=true\"  # label to filter containers\r\n    docker_container_private_port = 8080   # gobetween will take public container port for this private port\r\n    docker_container_host_env_var = \"HOSTNAME\"\r\n```\r\n\r\nGobetween is able to discover new backends, when i try to scale up the app, but proxying is not working - see log output:\r\n\r\n```sh\r\napp_1        | PHP 7.0.13 Development Server started at Fri Nov 25 20:08:30 2016\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (manager): Initializing...\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (server): Creating 'app': 0.0.0.0:80 roundrobin docker none\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (scheduler): Starting scheduler\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (manager): Initialized\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (api): API disabled\r\ngobetween_1  | 2016-11-25 20:08:31 [INFO ] (dockerFetch): Fetching unix://var/run/docker.sock scale.app=true 8080\r\ngobetween_1  | 2016-11-25 20:08:40 [DEBUG] (server.handle): Accepted 10.211.55.2:52649 -> [::]:80\r\ngobetween_1  | 2016-11-25 20:08:40 [DEBUG] (server.handle): Accepted 10.211.55.2:52648 -> [::]:80\r\ngobetween_1  | 2016-11-25 20:08:40 [ERROR] (server.handle): dial tcp :0: getsockopt: connection refused\r\ngobetween_1  | 2016-11-25 20:08:40 [ERROR] (server.handle): dial tcp :0: getsockopt: connection refused\r\n```\r\n\r\nAm I missing something?"},"comment":{"url":"https://api.github.com/repos/yyyar/gobetween/issues/comments/263020602","html_url":"https://github.com/yyyar/gobetween/issues/46#issuecomment-263020602","issue_url":"https://api.github.com/repos/yyyar/gobetween/issues/46","id":263020602,"user":{"login":"nickdoikov","id":19776580,"avatar_url":"https://avatars.githubusercontent.com/u/19776580?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdoikov","html_url":"https://github.com/nickdoikov","followers_url":"https://api.github.com/users/nickdoikov/followers","following_url":"https://api.github.com/users/nickdoikov/following{/other_user}","gists_url":"https://api.github.com/users/nickdoikov/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdoikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdoikov/subscriptions","organizations_url":"https://api.github.com/users/nickdoikov/orgs","repos_url":"https://api.github.com/users/nickdoikov/repos","events_url":"https://api.github.com/users/nickdoikov/events{/privacy}","received_events_url":"https://api.github.com/users/nickdoikov/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T20:44:12Z","updated_at":"2016-11-25T20:44:12Z","body":"``` \r\ndocker_container_host_env_var = \"HOSTNAME\"\r\n```\r\ndo you have such env var  in scale.app containers ?\r\n"}}
{"actor":{"display_login":"nickdoikov"}}