A practical walkthrough for running WordPress locally with Docker Compose, without fighting volume mounts.
Why containers help
Pinned images keep PHP, Apache and MariaDB consistent across machines. The child theme and wp-content stay on the host so edits refresh immediately.
Tip: Prefer copying local-only mu-plugins into place instead of nesting file bind mounts under wp-content on Docker Desktop.
Compose sketch
services:
wordpress:
image: wordpress:php8.3-apache
volumes:
- ./wp-content:/var/www/html/wp-content
Once MariaDB is healthy, install WordPress with WP-CLI and activate your child theme.






Leave a Reply