Docker/Hub

Docker maintains a list of official images which "are a curated set of Docker repositories hosted on Docker Hub." These images are official to Docker not to MediaWiki. The images meet Docker's best practices of what they believe makes a good base image, it does not fulfill all of the roles and capabilities that MediaWiki has to offer. The image intentionally includes only the minimal amount of software necessary to run MediaWiki. It is designed to be extended from rather than used directly.

The MediaWiki image can be found at:

https://hub.docker.com/_/mediawiki

The source code can be found at:

https://github.com/wikimedia/mediawiki-docker

When changes are made to this git repository, they must be deployed to Docker hub by modifying the configuration file in their repository:

https://github.com/docker-library/official-images/blob/master/library/mediawiki

Quick Start

 * 1) Install Docker
 * 2) Install Docker Compose
 * 3) Create a folder for your project.
 * 4) Create a   with the sample contents.
 * 5) Clone MediaWiki in a subfolder called.
 * 6) Disable OPCache
 * 7) Run

Sample
This sample assumes you will use a SQLite database. version: '3.2' services: web: image: mediawiki ports: - 8888:80    volumes: - ./html:/var/www/html:cached - database:/var/www/data volumes: database:

Disabling OPCache
Create a  file in the web root, typically   with the following content:

php_flag opcache.enable Off