Skip to content

Upgrade

Make sure you have backed up your database before you do any database migrations.

In your OpenRelik directory, edit config.env and change version for:

- OPENRELIK_SERVER_VERSION=<CHANGE_VERSION>
- OPENRELIK_MEDIATOR_VERSION=<CHANGE_VERSION>
- OPENRELIK_UI_VERSION=<CHANGE_VERSION>
- OPENRELIK_WORKER_STRINGS_VERSION=<CHANGE_VERSION>
- OPENRELIK_WORKER_PLASO_VERSION=<CHANGE_VERSION>
- OPENRELIK_WORKER_TIMESKETCH_VERSION=<CHANGE_VERSION>
- OPENRELIK_WORKER_HAYABUSA_VERSION=<CHANGE_VERSION>
Terminal window
$ cd /your/openrelik/directory/
$ docker compose down
$ docker compose up -d

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.

Terminal window
$ docker exec -it openrelik-server /bin/bash
$ cd /app/openrelik/datastores/sql/
$ alembic upgrade head