This guide explains how to upgrade Wikibase Suite (WBS) from version 1 to 2 while preserving the existing installation and Docker volumes. It upgrades the Wikibase Docker Image from MediaWiki 1.39.8 to MediaWiki 1.41.2.
[!WARNING] On startup, the Wikibase Docker Image automatically applies the MediaWiki database schema updates. Do not remove
config/LocalSettings.phpor any Docker volumes as part of this upgrade.
If you have not already, log in to your server and change to your WBS directory.
Read the MediaWiki 1.41.2 UPGRADE file and prepare any applicable customizations for MediaWiki 1.41.2.
This upgrade requires no new .env values. Preserve deploy/.env unchanged.
If you modified tracked files such as deploy/docker-compose.yml, commit those changes before switching versions.
Back up your data and configuration. See Backing Up and Restoring. The backup procedure stops WBS; continue directly with the migration.
While still in your WBS directory, ensure the services are stopped by running.
docker compose down
Move to the repository root, fetch and check out WBS 2.0.0.
cd ..
git remote update
git checkout deploy@2.0.0
cd deploy
Reapply any tracked customizations you still need. Keep the WBS 2 files as the base rather than restoring the old files wholesale.
If you installed extensions specifically for this instance, follow Updating Extensions.
Pull the new images and start WBS.
docker compose pull
docker compose up -d
docker compose ps