Expected behavior
Services are accessible to each other via services names defined in docker-compose.yml
file, and not localhost, as mentioned in docs - Networking in compose
Actual behavior
Services can talk to each other over localhost
.
The behaviour seems to be changed after latest Docker for Mac update. I asked the same in docker/github issues also where I have provided the version info: #3745