Upgrade
Prerequisites
Section titled “Prerequisites”Make sure you have backed up your database before you do any database migrations.
Change version in configuration
Section titled “Change version in configuration”In your OpenRelik directory, edit config.env and change version for:
Core system
Section titled “Core system”- OPENRELIK_SERVER_VERSION=<CHANGE_VERSION>- OPENRELIK_MEDIATOR_VERSION=<CHANGE_VERSION>- OPENRELIK_UI_VERSION=<CHANGE_VERSION>Worker versions
Section titled “Worker versions”- OPENRELIK_WORKER_STRINGS_VERSION=<CHANGE_VERSION>- OPENRELIK_WORKER_PLASO_VERSION=<CHANGE_VERSION>- OPENRELIK_WORKER_TIMESKETCH_VERSION=<CHANGE_VERSION>- OPENRELIK_WORKER_HAYABUSA_VERSION=<CHANGE_VERSION>Restart the system
Section titled “Restart the system”$ cd /your/openrelik/directory/$ docker compose down$ docker compose up -dUpgrade database and migrate data
Section titled “Upgrade database and migrate data”For some versions there will be updates to the database schema and this need to be reflected in your deployed database. OpenRelik uses Alembic to manage these migrations.
$ docker exec -it openrelik-server /bin/bash$ cd /app/openrelik/datastores/sql/$ alembic upgrade head