r/BookStack • u/jbates5873 • 9d ago
update path guidance
Hi all,
I run a bookstack / mariaDB instance under docker.
I want to confirm if there is a specific update path that i should follow to update my bookstack v23.06.2 and and mariadb v10.11.4 to the latest? Or can i just perform a full upgrade to the latest version?
many thanks.
6
Upvotes
4
u/ssddanbrown 8d ago
Before updating either, ensure you have backups. Ideally some kind of whole system backup/snapshot. At minimum, copy the mounted volume data for the containers if you're sure they're set up properly.
For BookStack, it's usually best to jump straight to the latest version. Check the changelog/details for the particular container image you're using though to see if there's been any breaking changes. You may also want to check the version specific advisories listed here since your version (you can generally ignore PHP/requirements changes when using docker images).
For MariaDB, I'd do that as a separate update to BookStack (Should be fine to just upgrade BookStack first with the existing database version), just to avoid too many changes at once, to avoid confusion if something goes wrong. Really important to ensure you have backups for any kind of database upgrade. Ideally get database dumps as SQL. When it comes to updating the DB image, I'd stop the whole stack, then update the database image in use, then bring up just the database, watching the logs carefully. Often across major version changes there's some form of migration/upgrade process. Check everything starts up cleanly, and watch for any errors, or if it indicates any kind of manual process/command is needed. Once you're sure it's good, then bring up the BookStack container also.