Local Wikibase Instance¶
The following is an introduction on how to build your own Wikibase instance using Docker. This instance can then be used for testing modifications using the Wikibase API without risking unwanted changes to the live instance.
Setting up Wikibase¶
Next, use wikibase-docker to set up Wikibase and its query service on your machine:
- Create an empty directory:
mkdir wikibase-docker && cd wikibase-docker
- Download the
docker-compose.yml
file from the wikibase-docker repo to the directory:wget https://raw.githubusercontent.com/wmde/wikibase-docker/master/docker-compose.yml
- Set up the Docker containers:
docker-compose pull
- Start the containers:
docker-compose up
After a while, you should have a Wikibase instance up and running. MediaWiki can be accessed on http://localhost:8181 and the SPARQL UI at http://localhost:8282.