Skip to content

Updates

Nyravio uses Flyway for database schema management. Migrations run automatically on application startup when upgrading to a new version.

  1. Back up the database before upgrading — see Backup
  2. Read the changelog for breaking changes: CHANGELOG.md
  3. Test in staging if upgrading across multiple minor versions
Terminal window
cd nyravio
git pull
docker compose up -d --build

The build process compiles the application and applies any pending database migrations on startup.

Terminal window
# Stop the current instance (preserves data volumes)
docker compose stop
# Start with the new version
NYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:NEW_VERSION docker compose up -d --no-build

After upgrading, verify the deployment:

Terminal window
# Liveness probe
curl http://localhost:8080/health/live
# Readiness probe (includes database connectivity)
curl http://localhost:8080/health/ready

Check application logs for any migration errors:

Terminal window
docker compose logs nyravio | grep -i flyway

Rollback requires a pre-upgrade database backup. There is no automatic rollback mechanism.

To roll back:

  1. Stop the application
  2. Follow the Recovery procedure using the pre-upgrade backup
  3. Set NYRAVIO_IMAGE to the previous version
Terminal window
# For prebuilt images
export NYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:PREVIOUS_VERSION
# For source-built images (if saved with docker save)
docker load -i /path/to/nyravio-image-backup.tar

Then follow the full restore procedure in Recovery.

  • Running a newer application version against a restored older database may apply forward-only migrations that cannot be reversed
  • Running an older version against a newer schema will fail on startup (Flyway detects the version mismatch)
  • The backup metadata records the original image identity — the restore procedure verifies it before any destructive operation