WordPress Local Dev Environment
WordPress + MySQL + phpMyAdmin + Mailpit + WP-CLI with theme and plugin directories mapped to host.
WordPress Local Dev Environment
A local WordPress setup that mirrors a managed hosting environment. Theme and plugin directories are volume-mounted so you edit on your host and see changes live. Mailpit intercepts all outgoing mail so you can test email flows without sending anything real.
What's Included
- WordPress (latest) with
wp-config.phppre-configured for the stack - MySQL 8.0 as the database backend
- phpMyAdmin for visual database management
- Mailpit for local SMTP interception and email preview
- WP-CLI available via
docker compose run --rm wpcli
Developer Experience
./themes/and./plugins/on your host map directly into WordPress — no container rebuilds needed- Mailpit catches all PHP
wp_mail()calls — preview in the browser at port 8025 - WP-CLI pre-authenticated to the local DB — run
docker compose run --rm wpcli wp plugin install woocommercewithout entering credentials - WordPress debug mode enabled by default with
WP_DEBUG_LOGtowp-content/debug.log
What You Get
docker-compose.yml— all five serviceswp-config-extra.php— debug settings and SMTP override to route mail through Mailpitthemes/andplugins/— mount points, add your own code here.env.example,.gitignore,README.md
Service URLs
- WordPress:
http://localhost:8000 - phpMyAdmin:
http://localhost:8001 - Mailpit:
http://localhost:8025 - MySQL:
localhost:3306