Upgrade and roll back
Back up, move to a new version, and restore the backup if it goes wrong.
Upgrade
-
Back up
make backupSee Back up and restore.
-
Set the version and start
Set
DRIVE_VERSIONindeploy/.envto the release, such as1.3.0, or tolatest.docker compose --env-file deploy/.env -f deploy/docker-compose.yml pull docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -dThen check that
curl http://localhost:8080/healthanswers.
Roll back
-
Stop the services and set the old version
docker compose --env-file deploy/.env -f deploy/docker-compose.yml stop api worker webPut the previous release in
DRIVE_VERSION. -
Restore the backup
make restore BACKUP=backups/drive-YYYYMMDD-HHMMSS
Changes made after the backup are lost. Your files are untouched.