This setup is great for writing quick apps in PHP from an OSX machine. It uses Virtualbox and machine to create the actual environment and then uses compose to setup the application services
brew update
brew install docker docker-compose docker-machine
docker-machine create -d virtualbox dev
docker-machine start dev
eval $(docker-machine env dev)
docker-compose build
docker-compose up -d
you can now start writing your app!
docker-compose kill
Check out app/index.php
for getting credentials from the ENV variables.