Updates
OPENKB_TAG=latest, the default, follows the newest release. An update fetches its images and runs the database updates they bring.
- Back up the database and the
drupal-filesandcollab-storevolumes. The commands are in the backup section ofdocs/self-hosting.md. -
Fetch the newest release and restart:
docker compose pull && docker compose up -d -
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
adminand openhttps://admin.kb.example.com/update.php, or run them from a shell:docker compose exec drupal drush updatedbThe 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.