It can be frustrating to spin up a Virtualbox VM with docker-machine and then if you want to interact with your services, you have to either
- A) manually forward ports, or
- B) look up the machine's IP
Instead, use Avahi to resolve local DNS so you can access services running in your docker-machine VM at
It's required that the host have Bonjour (pre-installed on all Macs) or some other mDNS client installed.
In docker-compose, include the layer with:
version: '2' services: avahi: image: enernoclabs/avahi:latest network_mode: "host"