Description
WPDC, short for WordPress Docker Compose, is a project for quick WordPress development with Docker and Docker Compose. It runs WordPress with WP-CLI, phpMyAdmin and a MySQL database, and the README explains how to switch the database to MariaDB in the docker-compose.yml file. Setup starts by copying the example environment file to .env and changing the default IP address, the MySQL root password and the WordPress database name. Running the compose command creates two folders next to the compose file. The wp-data folder stores and restores database dumps, and the wp-app folder holds the WordPress application. The site is then served at the configured IP, which defaults to 127.0.0.1. The README covers starting, stopping and removing containers, including the option to remove the database volume, and it explains how to start from an existing site by copying in its code and a database dump. It also shows how to create dumps, and how to mount a theme or plugin folder into the container during development. The README asks for the latest Docker and Docker Compose, and for Linux users to add their user to the docker group.…
Highlights
- WordPress, WP-CLI, phpMyAdmin and MySQL
- Starts from an existing site and dump
- Database dumps for backup and restore
- Theme and plugin folders mounted into the container
Ratings & Reviews
No ratings yet
Be the first to rate Wordpress Docker Compose.
People also visit

ShieldPress Local
Local WordPress, Laravel and PHP stack with Nginx, MariaDB and SFTP
Wordpress Docker Compose FAQ
What does this project run?
WordPress with WP-CLI, phpMyAdmin and a MySQL database, all started from one Docker Compose file.
What do I need installed?
The latest Docker and Docker Compose. The commands use Compose V2 syntax, which ships with Docker Desktop and is available as the docker-compose-plugin package on Linux.
How do I start it?
Copy the example environment file to .env, adjust the IP address, MySQL root password and database name, then run the compose command in the folder with docker-compose.yml. The site opens at http://127.0.0.1 by default.
Can I use an existing WordPress site?
Yes. The README says to copy your WordPress code into the wp-app folder and the database dump into wp-data, then start the containers.
Can I use MariaDB instead of MySQL?
Yes. The README says you can change the database from MySQL to MariaDB in docker-compose.yml.
Can I develop a theme or plugin with it?
Yes. The README explains configuring a volume in docker-compose.yml that loads your theme or plugin into the container.
What are the best Wordpress Docker Compose alternatives?
Popular alternatives to Wordpress Docker Compose include Hostimdev, WPMgr and SandyWP. See all Wordpress Docker Compose alternatives




.jpg?auto=compress&fit=max&w=128)