We’ve put together a set of machines in Docker that should have you up and running in no time. This configuration starts an empty instance of Wikibase, a MediaWiki front end with query interface, a query backend, ElasticSearch, and a QuickStatements bulk editing service.
Together, these Docker machines require at least 4GB of memory.
An empty Wikibase running on Docker requires at minimum 6GB of disk storage.
In the directory that now contains the
docker-compose.yml file, run the following to pull the needed Docker machine images:
Start the machine images in the background:
docker-compose up -d
(To view the continuous output, you can run
docker-compose logs -f)
Verify that all the services have started.
docker-compose ps. You should see eight images in an “Up” state.
Check the logs for success or errors -- for example, using this command:
docker-compose logs --tail="20" -t
Try to load the front end and the query interface in your browser (see below).
Once all the services have started, you can begin to explore your empty instance of Wikibase.
This command stops the Docker containers, leaving the machines (and of course all data) intact:
As you might imagine, you can use
docker-compose start to start them again.
This command removes the containers but preserves all data in MySQL, Mediawiki and the query service in Docker volumes.
WARNING: this will remove ALL of the data you may have added to MediaWiki, Wikibase, the QueryService and ElasticSearch.
docker-compose down --volumes