FreedomBen / dory

Your development proxy for docker
MIT License
156 stars 24 forks source link

can't seem to connect #31

Closed jhoogeboom closed 5 years ago

jhoogeboom commented 5 years ago

This is on macOS 10.14.3

ruby -v
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
dory -v
Dory - Version: 1.0.3
version: "2"
services:
  redis:
    image: redis
    environment:
      VIRTUAL_HOST: redis.docker
      VIRTUAL_PORT: 6379
  crccheck:
    image: crccheck/hello-world
    environment:
      VIRTUAL_HOST: hello.docker
      VIRTUAL_PORT: 8000

Trying out a Redis and hello-world container, but running into issues, Redis-cli will refuse to connect:

redis-cli -h redis.docker ping
Could not connect to Redis at redis.docker:6379: Connection refused

while all *.docker respond to the curl of hello-world:

FreedomBen commented 5 years ago

I don't think redis supports HTTP, so it probably won't work with the reverse proxy (since that only speaks HTTP). If you watch the console on the redis container, does it do anything when you try to hit it?

Sorry for the late reply by the way. The notification must have got lost in cyberspace.

jhoogeboom commented 5 years ago

Hi! I do see something when I hit it, but no connection or data. I think this issue can be closed, relates to another one in Dinghy. This mostly stems from a misunderstanding that this could be the per container addressing or bridge network that docker for Mac lacks.

FreedomBen commented 5 years ago

Awesome, thanks @jhoogeboom