I had a bunch of cruft in start scripts that would determine the IP of my laptop and set it as an environment variable to pass to docker-compose
and it turns out that with Docker for Mac you don’t have to do all that work - just use docker.for.mac.localhost
as a hostname.