A self-contained instance of MediaWiki with data volume support. Based on the work by Nick Stenning.
This image contains a basic docker-powered installation of MediaWiki, powered by nginx, php-fpm, and sqlite.
The setup requires LocalSettings.php
and
wiki.sqlite
. You can run the MediaWiki installer to configure your wiki. In the alternative,
you can copy the files in bootstrap to /data/wiki
and your wiki will spin up with a default
database and settings.
The README.md
in Nick Stenning's repo has instructions for creating your own LocalSettings.php
using the MediaWiki installer.
By default, MediaWiki uploads will also be written to the images/
directory of
the mounted data volume. This directory will be created if necessary on startup.
The web server is nginx. Its configuration file works with php-fpm by listening on a unix socket.
MediaWiki is based on php so the Dockerfile
installs php5 and appropriate packages.
The database is sqlite. Since this is a file-based database, a bootstrapped file is provided to get you going. Appropriate php5 packages are installed to work with sqlite.
Supervisor controls the server processes. The Docker ENTRYPOINT launches supervisor to initialize the services.