Dockerfile for running a MediaWiki server via Apache-PHP. #krash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid 4f45d78e35 update charlesreid1-config submodule 11 months ago
attic Moving build/run for standalone Docker image to attic/ 3 years ago
charlesreid1-config @ 1505e72064 update charlesreid1-config submodule 11 months ago
docs add links to front matter, fix a link 3 years ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 2 years ago
.gitignore updating gitignore 3 years ago
.gitmodules init version of documentation 3 years ago
Dockerfile no more building math extension in d-mediawiki dockerfile 1 year ago
LICENSE Adding initial readme and license 3 years ago update readme 3 years ago add notes on how to upgrade skins 2 years ago add clean script 3 years ago Adding makefile instructions to readme 3 years ago update fix localsettings - typo in var name 2 years ago fix permissions issue with extensions dir 1 year ago fix skins folder 2 years ago Adding makefile instructions to readme 3 years ago
mkdocs.yml Update mkdocs.yml for mkdocs 1.0 2 years ago


This is the MediaWiki docker container used to run
MediaWiki on

This container also runs an Apache web server and
a PHP engine.

You should not run this container by itself (see


This directory contains a Dockerfile that modifies the
official MediaWiki docker container. Before launching
the container, it specifies /var/www/html as a mounted volume,
and it copies LocalSettings.php, the MediaWiki config file,
from this repo into the container.

See d-mysql repo.

Also see pod-charlesreid1
for a working pod using this container.

Docker Compose

To use this container as part of a pod, as with the wiki,
see pod-charlesreid1-wiki.


If you are seeing 404s on every page you try, it may be because
your MediaWiki config file is set to redirect you to /wiki/Main_Page
but your web server is not set up to handle it.

See this lin
and the guide for apache
and nginx.

Updating Settings

The LocalSettings.php file must be copied into the
container, because we will end up bind-mounting the
entire MediaWiki directory when the container is run
and we can’t bind-mount a file inside a bind-mounted

Thus, to update LocalSettings.php, skins, or extensions,
you will need to re-make the Docker container.
Use the make rules to remake the Docker container:

make clean
make build
make run


The submodule charlesreid1-config/
contains configuration files for both
MediaWiki and Apache.

See the wiki/charlesreid1-config
repo for details.

To clone the submodule when you clone the repo,
include the --recursive flag:

git clone --recursive

To check out the submodule after a shallow clone:

git submodule init
# or 
git submodule update --init 

To fetch changes to the submodule from the submodule’s remote:

git submodule update --remote