You can also use WordPress in Docker for a quick local setup, or to use on a container-based environment, like Netlify who are free for small projects. Here is a feature about using WordPress on Netlify: https://www.netlify.com/with/wordpress/
docker-compose.yml based on the quickstart instructions, you can install and connect two local servers, an Apache webserver with PHP and WordPress, and a MySQL database server, all by running
Then you can use your local WordPress setup in your browser on
If you want to test older WordPress versions, you can change
image: 'wordpress:latest' and replace
latest with one of the docker images available on docker hub, like
The following example is a local
docker-compose setup I used to develop a WordPress plugin, so I have added another docker volume for my plugin folder.
# image: 'wordpress:4.8-php7.0-apache'