Dockertize WordPress

Been working with Docker for a while, in this post, I want to share how to run WordPress in Docker.

Create a new folder where you wanna put the WordPress app, then inside the folder, create a file called docker-compose.yml and put the content as following:

Then in the terminal run Docker

$ docker-compose up

Then open your browser and browse to http://localhost:8000, you should see your WordPress site is up and running.