I have an application that serves different services based on hostname. When using docker-machine, I have been using /etc/hosts to map my local testing domains to the docker-machine ip default ip address.
So I have been having an entry like this in /etc/hosts
192.168.99.100 backoffice.local.app api.local.app
Now with Docker for Mac, I cannot figure out a way to get the IP address for the docker host machine. Any way to do this?
I believe everything is bound to 127.0.0.1 (localhost) since beta9: https://beta.docker.com/docs/mac/release-notes/
This is what I also thought. I have narrowed down my problems to my dockercloud/haproxy that somehow refuse connections after migrating to docker for mac
If I run the sample nginx app, and map 80:80, it works by accessing backoffice.local.app, but with my docker-compose setup it doesn’t work… Maybe there is some bug with docker compose… I’ll try to narrow it down a bit further
Ok. Commented out my loadbalancer (dockercloud/haproxy) and expose 80:80 from my web app instead, and then all works like a charm
I don’t know where to file this…
Filed the issue on github, and minutes after I found the solution for it