This page instructs you to install Extension:WikibaseLexeme inside MediaWiki-Docker. All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Install MediaWiki-DockerEdit

Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080, then continue with instructions on this page.

Install WikibaseEdit

Install Wikibase.

Clone the repository and its dependenciesEdit

git clone "" extensions/WikibaseLexeme

Install Composer dependenciesEdit

Add this to composer.local.json:

  "extra": {
    "merge-plugin": {
      "include": [


docker compose exec mediawiki composer update

Modify LocalSettings.phpEdit

If not already there, add this to the end of LocalSettings.php.

wfLoadExtension( 'WikibaseLexeme' );

Run maintenance scriptsEdit

docker compose exec mediawiki php maintenance/update.php