I am taking a hard look at Docker as my primary local WordPress development environment. I’ve been here before (in terms of checking it out) and generally love the environment. But I have a few details to work through. I will be posting a few questions here and here’s the first one.
I am using the official WordPress image, which by default has a docker-compose file defining two volumes (one for the DB and one for HTML). Anecdotal testing suggests that the performance on my local (Windows) machine, which is a pretty beefy laptop, is much slower using the volumes. This is in comparison to a test I did where I removed the volumes and just had everything in the containers. The difference in performance is very clear, especially on longer processes (restoring a backup, loading a pagebuilder, etc).
One option I am considering is just keeping everything in the containers (no volumes defined) and using a regular backup (UpDraftPlus) to take care of backups (to the cloud). That will cover the persistence I need, while also seemingly offering a much quicker instance. That said, I really like the host-related benefits of using volumes, so want to think this through.
I’d be interested in how others have approached this. Do you see a really significant difference in instance performance when using volumes for WordPress data?