Updates

OPENKB_TAG=latest, the default, follows the newest release. An update fetches its images and runs the database updates they bring.

  1. Back up the database and the drupal-files and collab-store volumes. The commands are in the backup section of docs/self-hosting.md.
  2. Fetch the newest release and restart:

    docker compose pull && docker compose up -d
  3. Run the database updates. Where the new images bring database updates, the site holds itself on a maintenance page until an administrator has run them. Sign in as admin and open https://admin.kb.example.com/update.php, or run them from a shell:

    docker compose exec drupal drush updatedb

    The hold lifts itself when they are through. Nothing is updated unattended.

When the release notes ask for more

The three steps above are a regular update. Now and then a release also changes the compose file or adds a setting, and its notes on the releases page say so. Then update your checkout before step 2:

git pull

Compare .env.example with your .env for new settings; your .env stays as it is. In the quickstart, fetch docker-compose.yml again with the curl line instead.

Pinning a version

To stay on one release, name it in .env instead of latest:

OPENKB_TAG=1.2.3

docker compose pull then keeps that version until OPENKB_TAG names another.