Skip to content

Updates & Migrations

The SelfHosted backend prepares the SQLite database during startup.

A brand-new empty database is bootstrapped to the current schema. An existing database follows the normal Entity Framework migration path. If the existing schema is not safe to migrate, startup fails rather than silently stamping it as current.

Keep a recent local backup or another independent copy of the persistent /data volume.

Terminal window
docker compose pull
docker compose up -d

Compose replaces the application container while preserving the mounted /data volume.

The latest tag is published only after the full public CI passes on main.

Every release also gets an immutable selfhosted-sha-<commit> tag. The committed Compose file reads it from NOSTOS_IMAGE_TAG:

Terminal window
NOSTOS_IMAGE_TAG=selfhosted-sha-<full-commit-sha> docker compose up -d

Use only selfhosted-sha-* tags as pins. Older sha-* tags in the same package predate the SelfHosted image and may point at other builds.

Images published before October 11, 2026 kept the key ring inside the container, at /home/app/.aspnet/DataProtection-Keys. Current images keep it in /data/keys, so it survives container replacement.

Before you replace an older container, copy the files from that directory into the volume’s keys/ directory, owned by a user the app can read and write as. If the old container is already gone, re-enter your AI keys in Settings. Keys supplied through environment variables are not affected.

Check the service state and recent logs:

Terminal window
docker compose ps
docker compose logs --tail 100 nostos

Confirm that the container remains running and that startup shows no database-bootstrap, migration, storage, or fatal application errors.

Do not rely on one exact success log sentence; startup messages can change while the migration contract remains the same.