Some weeks ago I’ve created a nice and clean Docker Boilerplate for PHP applications with most common services like Apache HTTPd, Nginx, MySQL, PostgreSQL, Mail-Handling and other stuff. The first version was for TYPO3, all later versions are general for any PHP application.
The focus of this Boilerplate is the customisability to use it as template for any PHP based project like TYPO3, Symfony and other frameworks. This Boilerplate is not tied to much to any framework but provides some configuration for existing frameworks.
All services are configured to output enough informations as possible to make development fun again.
To run this Docker Boilerplate you need a Linux with Docker. If you’re working under Windows or MacOS i can recommend a Vagrant VM with preinstalled Docker.
If you don’t have any Vagrant VM yet you can try my Vagrant Docker VM which also provides an mail sandbox, SSH, HTTP reverse proxy (for Docker Boilerplate instances) and Samba service. Host to guest sharing is available and it’s compatible to VirtualBox, VMware Fusion, VMware Workstation and Parallels Desktop.
I would not recommend Boot2docker for web development because of the missing host to guest file sharing (Samba or fast VM specific sharing). Also Windows developers need their development environment and within a Busybox you can’t develop nicely.
Also some debug tools like strace or tshark (network sniffer) are missing.
Boot2docker is nice if you only want to run services like databases but IMHO not for real development. And because of the better speed and stability of VMware or Parallels compared to VirtualBox.
Any comments or suggestions? Leave a comment 🙂