MediaWiki-Docker-Dev

MediaWiki-Docker-Dev (or MDD) is a development environment for MediaWiki, based on Docker. It was authored by Addshore, with contributions from others. It can be installed from GitHub, and you can find instructions for setup in the README.

Adjusting database replication delay
This is very useful for reproducing production bugs caused by replication delay.

First, connect to the replica database:

Then execute this SQL to set the delay to 2 seconds.

The output should show

Log to STDERR
With this configuration, you can view MediaWiki's logs by running, or   to view only error messages.

Improve file system sync on macOS
Docker for Mac users may notice a performance improvement by adjusting  so that the   section under   has   set:

EventLogging

 * 1) Clone the eventlogging repository
 * 2) Run  . (Optional) If you have jq installed, you can run   for improved formatting of the JSON output.

In Docker for Mac, add this to your :

Redis
In  add:

In MediaWiki's, add:

Parsoid / VisualEditor
See https://github.com/addshore/mediawiki-docker-dev/pull/83 for how to running Parsoid as a service locally.

Alternatively, you can use the approach from boxwiki: