Skip to main content
Version: Development

Upgrades and rollback

install --resume exists for an interrupted first install of the same project. It is not an upgrade command and must not be used to adopt or migrate a newer schema.

Distribution versions identify a tested combination, not synchronized component versions. Never upgrade by choosing each component's newest tag independently. The starter provides preflight, pulls and database-only backup, but deliberately omits an automatic upgrade/rollback script until migration and coherent backup qualification exist. Direct git pull && docker compose up -d is not safe across schema changes.

Planned supported procedure​

  1. Read release notes, supported source versions and PostgreSQL compatibility. Record the old commit/tag and immutable pins. Confirm DNS/storage and a healthy current installation.
  2. Arrange a maintenance window and stop writers; create and verify a coherent database + all-volume backup with off-host copy.
  3. Check out the target qualified distribution tag. Review .env.example diffs; update only the six image references in .env to the target manifest, keeping secrets, project namespace and storage paths intact. Do not regenerate .env.
  4. Pull the target images. On a disposable copy, run the target API's migrate --check to detect incompatible history, apply migrate, then migrate --check --require-current. A pending migration is not evidence of corruption.
  5. After backup and rehearsal, stop the old API and writers, keep DB available, run the reviewed migration sequence, then docker compose up -d. Verify the schema-check, readiness, Auth UI, Admin UI, CLI, playback and actual library.
  6. Record results, retain the prior bundle and backups, and resume traffic only after post-upgrade checks.

The exact orchestration, concurrency and interruption behavior must be verified against the selected API images before these steps become supported executable upgrade automation. PostgreSQL major upgrades are a separate reviewed procedure.

Rollback​

Container rollback does not undo a forward-only database migration. Never run an older API on a newer schema unless explicitly qualified. When schema compatibility is not proven, restore the entire pre-upgrade recovery point into a compatible isolated deployment, verify, and perform a deliberate cutover. Do not delete or recreate volumes as part of a routine rollback.