Upgrade Vellum
This guide shows you how to upgrade a self-hosted Vellum that runs with Docker Compose.
Each release is the image ghcr.io/alternayte/vellum:<version>. The Compose file runs the version in VELLUM_VERSION, or latest when it has no value. A release never changes a migration of an earlier release, so your data moves to each later version.
Before you start
Section titled “Before you start”- You operate the instance: you have the directory with
docker-compose.yml. - You can sign in as the instance administrator.
Upgrade
Section titled “Upgrade”-
Make a backup of the database and the master key. Follow Back up. The upgrade changes the database, and no step of Vellum changes it back.
-
Read the release notes of each version after yours.
-
Set the new version in the file
.envnext todocker-compose.yml, for exampleVELLUM_VERSION=0.2.0. -
Get the image and start it.
Terminal window docker compose pull vellum && docker compose up -d --waitVellum applies the database migrations when it starts. The command returns when the app is healthy.
-
Sign in. Open Settings, then Instance, then Diagnostics. Check that no pending migration is listed.
-
Open a project and play a scenario.
Your session, your settings and your stored credentials survive the upgrade.
After an upgrade
Section titled “After an upgrade”A new version can change an extraction rule. The next scan of a repository then matches the accepted facts to the facts that it finds. When it cannot match a fact exactly, the review asks you to choose. See Extraction rules.
If Vellum does not start
Section titled “If Vellum does not start”Read the log.
docker compose logs --tail 50 vellumVellum does not start explains each message. To go back to the old version, follow If the upgrade fails.
Without Compose
Section titled “Without Compose”Replace the container image with the image of the new release, and start it with the same environment. The migrations run at start-up unless Database__MigrateOnStartup is false. See Upgrade in the runbooks.