Upgrade dmsforall
At the end of this page, your installation runs the new version, and you know how to go back if something fails.
Before you upgrade
Section titled “Before you upgrade”- Read the changelog for every version between yours and the new one. Note any change in configuration variables.
- Take a backup, and check that it is complete. See Back up and restore.
- Check the free disk space. The migrations and the backups need room.
- Plan a short window, and tell your staff. Staff must not work during the upgrade.
Upgrade
Section titled “Upgrade”-
Set
DFA_VERSIONin.envto the new tag. See Verify the images. -
Pull the new images and restart the stack:
Terminal window docker compose pulldocker compose up -d -
The
migrateservice applies the database migrations before the API starts. Check that it finished without an error:Terminal window docker compose ps -a migrate -
Check the health endpoint:
Terminal window curl -s https://garage.example.org/api/v1/sante -
Sign in and check one document of each area you use.
If something fails
Section titled “If something fails”- The migration failed. The API does not start on the new version, and the previous version keeps running. Read the logs of the
migrateservice, fix the cause, and run the stack again. - The API does not start. Read the logs. A configuration error lists each faulty variable. Fix the variable and start again.
- The new version misbehaves. Restore the backup taken before the upgrade. This is the supported way to return to the previous state.