Skip to content
W

Wordpress Docker Compose

Easy Wordpress development with Docker and Docker Compose

by nezharFree

#1749in Developer Tools
0In stores

Description

WPDC, short for WordPress Docker Compose, is a project for quick WordPress development with Docker and Docker Compose. It runs WordPress wit…

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

H

Hostimdev

Simple Docker hosting with managed databases

Developer Tools
Launch
W

WPMgr

Open-source, self-hostable WordPress fleet management: backups, updates

Developer Tools
Launch
S

SandyWP

WordPress Sandbox, instantly

Developer Tools
Launch
W

WordPress/wp-playground

WordPress Playground for instant local environments

AI Skills
Get
S

Sencho

Self-hosted Docker Compose management platform

Developer Tools
Launch
S

ShieldPress Local

Local WordPress, Laravel and PHP stack with Nginx, MariaDB and SFTP

Developer Tools
Launch

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

Developer Stuff

Badges