MediaWiki-Docker

MediaWiki-Docker is a Docker based development environment included with MediaWiki core.

Example file
Below is a complete override file that provides a Redis and ElasticSearch containers, along with overriding the user mapping and the XDebug configuration for the app container.

Use MySQL instead of SQLite
The default configuration uses SQLite for the database backend, but you can use MySQL instead. These instruction assume a new installation (no LocalSettings.php).



To install the MediaWiki database tables, use:

Disable XDebug for better performance
If you are not working on backend code or don't need to set breakpoints, you can use a Docker image that has XDebug disabled, which can boost performance.



Mail handling
You can capture outgoing email with MailHog. The mail interface is accessible at http://localhost:8025/





ElasticSearch





 * Setup commands

EventLogging





 * Setup commands


 * 1) Clone the Extension:EventLogging extension into
 * 2) You can tail the output to the   container with , or, pipe it to   with
 * 3) For client-side logging to work properly, you need to modify your system's  file with an entry that looks like this:

Ngrok
You can use ngrok to share your local site with others. After installing, run. Whatever URL is shown to you needs to be set in your.



Performance profiling with XHProf
You can use XHProf to profile requests.

TODO: Adapt something from https://github.com/perftools/xhgui/blob/master/docker-compose.yml