But how does this work when talking to dev databases on my machine?
Getting a Docker compose dev env working is another can of worms. Maybe I should write about that next?
It makes your local development environment incredibly resilient.
There are a lot of dockerfile / compose examples on github.
* https://github.com/docker/awesome-compose * https://github.com/jessfraz/dockerfiles