mediawiki Docker & Self-Hosted Deployment

GitHub

The collaborative editing software that runs Wikipedia. Mirror from See for contributing.

5,134 stars PHP PHP 1 file · ~23,203 tokens #mediawiki#php#wiki#wikipedia
RAW Compose
1. Pull Image (DOCKERHUB) docker pull docker-registry.wikimedia.org/dev/trixie-php85-fpm
2. Docker Run (1-Click Launch) docker run -d --name mediawiki -p 8080:8080 --restart always docker-registry.wikimedia.org/dev/trixie-php85-fpm:1.0.0
3. Podman Run podman run -d --name mediawiki -p 8080:8080 --restart always docker-registry.wikimedia.org/dev/trixie-php85-fpm:1.0.0
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/docker-registry.wikimedia.org/dev/trixie-php85-fpm:1.0.0
5. ORAS Pull (OCI Artifact) oras pull docker-registry.wikimedia.org/dev/trixie-php85-fpm:1.0.0
6. Compose Deployment docker compose up -d
docker-compose.yml
Download .yml
# Please see DEVELOPERS.md for help
#
# Contributions to this file are welcome, but please note that this file is
# minimal by design, with the idea to make it easily extensible via
# docker-compose.override.yml. For help with doing that, please see
# DEVELOPERS.md
services:
  mediawiki:
    image: docker-registry.wikimedia.org/dev/trixie-php85-fpm:1.0.0
    user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
    volumes:
      - ./:/var/www/html/w:cached
    env_file:
      - '.env'
    environment:
      COMPOSER_CACHE_DIR: '/var/www/html/w/cache/composer'
      MW_SERVER: 'http://localhost:${MW_DOCKER_PORT:-8080}'
      MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"
      MW_SCRIPT_PATH: '/w'
      MW_DBPATH: '/var/www/html/w/cache/sqlite'
      MW_DBTYPE: 'sqlite'
      MW_LANG: 'en'
      MW_USER: '${MEDIAWIKI_USER:-Admin}'
      MW_PASS: '${MEDIAWIKI_PASSWORD:-dockerpass}'
      MW_SITENAME: 'MediaWiki'
      MW_LOG_DIR: /var/www/html/w/cache
      HISTFILE: /var/www/html/w/cache/.bash_history
      XDEBUG_CONFIG: '${XDEBUG_CONFIG}'
      XDEBUG_ENABLE: '${XDEBUG_ENABLE:-true}'
      XHPROF_ENABLE: '${XHPROF_ENABLE:-true}'

  mediawiki-web:
    image: docker-registry.wikimedia.org/dev/trixie-apache2:1.0.0-s1
    user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
    ports:
      - "${MW_DOCKER_PORT:-8080}:8080"
    volumes:
      - ./:/var/www/html/w:cached
    env_file:
      - '.env'
    environment:
      MW_LOG_DIR: /var/www/html/w/cache
      MW_DOCKER_PORT: "${MW_DOCKER_PORT:-8080}"

  mediawiki-jobrunner:
    image: docker-registry.wikimedia.org/dev/trixie-php85-jobrunner:1.0.0
    user: "${MW_DOCKER_UID}:${MW_DOCKER_GID}"
    volumes:
      - ./:/var/www/html/w:cached
    env_file:
      - '.env'
    environment:
      MW_LOG_DIR: /var/www/html/w/cache
      MW_INSTALL_PATH: /var/www/html/w