Skip to content

Update a self-hosted installation

This guide walks you through updating a self-hosted installation of Operately to a newer version.

Log in to the server running Operately and navigate to the directory where Operately is running. By default this location is ~/operately.

Stop Operately and its background workers before updating so they cannot write data during the migration:

Terminal window
docker compose down

The update process depends on your current version:

  • Version 1.4.0 or later: Use the operately update script
  • Before version 1.4.0: Manually update the Docker Compose configuration

To install the latest official release:

Terminal window
./operately update

To update to a specific version:

Terminal window
./operately update <version>

Replace <version> with the version you want to upgrade to. For example:

Terminal window
./operately update 1.4.0
Terminal window
./operately update 1.5.0

You can also update to nightly builds:

Terminal window
./operately update nightly-build-20260116-070020-49842cd04

Depending on the Operately version you installed for the first time, the operately script might not be available. In that case, you need to generate it first:

Terminal window
docker compose run --rm app sh -c "/opt/operately/bin/generate-script" > operately
chmod +x operately

After generating the script, you can use the update commands above.

Keep the application stopped until the migrations finish.

Edit docker-compose.yml and update both the image tag and OPERATELY_VERSION in the app service to the same version:

# From this:
image: operately/operately:vOLD
...
- OPERATELY_VERSION=vOLD
# To this:
image: operately/operately:vNEW
...
- OPERATELY_VERSION=vNEW

Replace vOLD with your current version and vNEW with the target version you want to upgrade to.

Examples:

# From this:
image: operately/operately:1.2.0
...
- OPERATELY_VERSION=1.2.0
# To this:
image: operately/operately:1.3.0
...
- OPERATELY_VERSION=1.3.0
# From this:
image: operately/operately:1.2.0
...
- OPERATELY_VERSION=1.2.0
# To this:
image: operately/operately:nightly-build-20260116-070020-49842cd04
...
- OPERATELY_VERSION=nightly-build-20260116-070020-49842cd04
Terminal window
docker compose run --rm app sh -c "/opt/operately/bin/migrate"
Terminal window
docker compose up --wait --detach