Setup WordPress with docker compose

This is a super easy way to setup wordpress with docker compose.

  1. Create a folder called MyWebSite
  2. Inside MyWebSite, create two sub folders called www and db
  3. Copy attached docker-compose.yaml to MyWebSite

Inside the MyWebSite folder, start the site with:

docker-compose up -d

Inside the MyWebSite folder, stop the site with:

docker-compose down 

Site url’s

WordPress site
http://localhost:8000

PhpMyAdmin
http://localhost:8080