- Install Docker
- Create the
docker-compose.yml
in the empty directory we want to run the blog from - Run
docker-compose up -d
from the directory we saved thedocker-compose.yml
- Wait for everything to install and start
- Ensure any additional configuration you have in your production WordPress is in your
wp-config.php
file, but not the database credentials - Replace the installed WordPress
wp-content
with your own - Ensure your WordPress database is synced with production, phpMyAdmin is installed on
http://localhost:8080
- You should now have a working local copy of your blog at
http://localhost:8000
Instructions modified from Containerizing WordPress with Docker-Compose