Here is my original article on setting up a dev environment with Docker on OS X
However, there have been a lot of updates since this post, and the new docker-compose.yml file is at
This file also uses new images that were just built and updated for streamlined use on Linux/OS X. It uses MariaDB (vs MySQL), Nginx (vs Apache -- apache image maybe coming at later date), and PHP 7 (vs PHP 5). All of these updates make it the latest and greatest architecture setup for M2. More updates are to follow as this setup is going to continue to be actively maintained.
This makes Magento 2 easy to setup and run within a few minutes after all of the Docker requirements have been installed. The same Docker setup can pretty much be used for production as well, and it allows you to build custom Docker images for deployment.
It's all free! However I'm open to Docker consulting for advanced setups or help.
Ask my anything! Enjoy
Mark Shust · ZCE, MCD+
The updates to the images are great. What modifications and tweaks would you recommend for a production environment?