Docker MediaWiki Server: Difference between revisions

Jump to navigation Jump to search
Updated to reflect 1.39.4 is the latest supported LTS version of MediaWiki
No edit summary
(Updated to reflect 1.39.4 is the latest supported LTS version of MediaWiki)
 
Line 216: Line 216:
Note: You can change the version of the MediaWiki docker image used by changing the FROM line.
Note: You can change the version of the MediaWiki docker image used by changing the FROM line.
<syntaxhighlight lang="dockerfile">
<syntaxhighlight lang="dockerfile">
FROM mediawiki:1.35.3
FROM mediawiki:1.39.4
COPY ./extensions /var/www/html/extensions
COPY ./extensions /var/www/html/extensions
</syntaxhighlight>
</syntaxhighlight>
Line 222: Line 222:
==== Advanced ====
==== Advanced ====
Note: You can change the version installed by changing:
Note: You can change the version installed by changing:
* '''ENV MEDIAWIKI_MAJOR_VERSION 1.36'''
* '''ENV MEDIAWIKI_MAJOR_VERSION 1.41'''
* '''ENV MEDIAWIKI_VERSION 1.36.1'''
* '''ENV MEDIAWIKI_VERSION 1.41.1'''
* '''ENV MW_VERSION REL1_36'''
* '''ENV MW_VERSION REL1_41'''


To change to version 1.35 (LTS until 2023) you can substitute 1.35, 1.35.3, and REL1_35 for the values above.
To change to version 1.39 (LTS until Nov 2025) you can substitute 1.39, 1.39.4, and REL1_39 for the values above.


Copy the following to '''/srv/wiki/build/Dockerfile'''
Copy the following to '''/srv/wiki/build/Dockerfile'''
Line 316: Line 316:


# Version
# Version
ENV MEDIAWIKI_MAJOR_VERSION 1.35
ENV MEDIAWIKI_MAJOR_VERSION 1.39
ENV MEDIAWIKI_VERSION 1.35.3
ENV MEDIAWIKI_VERSION 1.39.4
ENV MW_VERSION=REL1_35
ENV MW_VERSION=REL1_39


# Home folder location
# Home folder location

Navigation menu