I have my wordpress running on LAMP, and now I would like to move it in Docker. I was wondering: how to handle wordpress and plugins updates?
I see two "easy" paths:
- Deploy a basic version of the website, and If I need to redeploy it for whatever reason I'll need to reupdate everything (probably a mess because of the database) - so not really viable.
- Keep the website's data persistent (I'm not using the wp docker image anyway), and mount a volume in the container with the wp files. In this way, the update would be persisted.
What I really want is to store on git and then build a new image every time there is a wordpress update.
Is this possible? If yes, how?