Following the popularity of Docker4Drupal we decided to do the same for WordPress — Docker4WordPress.

We’ve prepared a set of containers pre-configured for WordPress, docker-compose file and clear how-to instructions. Simply follow the instructions to deploy your docker-based local environment for WordPress.

The default bundle consist of Nginx, PHP7, MariaDB (MySQL analog), phpMyAdmin and Mailhog (to catch outbound emails) containers. Additionally you can enable Redis/Memcached for storing object cache, Apache Solr search engine for full-text search and Varnish HTTP Cache as a caching reverse proxy.

All containers’ images we used are either official or based on official with a slight customization to optimize it for WordPress.

Containers in the WordPress bundle

If you’re looking for a container-based infrastructure for your dev/staging/production server check out Wodby, we power up your server with container-based infrastructure optimized for WordPress which is fully consistent with Docker4WordPress.