Our agency standardized on Docker for local WordPress development. wp-env and custom Docker Compose setups. Some developers love it, others say it is overcomplicated for WordPress.
Is Docker actually the right tool for WordPress development environments or are we overengineering this?
For a solo developer, MAMP or Local by Flywheel is simpler. For a team where everyone needs identical environments, Docker is the right choice. The overhead is worth it when you eliminate ‘works on my machine’ issues.
The key is having a well-maintained docker-compose.yml that juniors can spin up with one command. If your Docker setup requires 10 steps to get running, you have defeated the purpose.
wp-env is good for core/plugin development. For full project work I prefer a custom Docker Compose with MariaDB, Redis, and Mailhog. The startup time is a few seconds and the environment matches production exactly.