Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

timschroederme/docker-mediawiki

 
 

Repository files navigation

Docker MediaWiki with VisualEditor

Docker image for MediaWiki 1.34.2 with VisualEditor plugin. The image is based on the kristophjunge/mediawiki image but has been simplified, and slightly updated, so that it runs the latest MediaWiki release.

Features

Usage

The image is to be used behind a proxy service like Traefik. It does not contain a LocalSettings.php configuration file and expects that this file is mounted as a separate volume. Consequently, it does not provide any environment variables for customization. A sample LocalSettings.php file is included.

A typical docker-compose file, in this case using Traefik, will look like the following:

mediawiki:
    image: timschroeder/mediawiki
    container_name: mediawiki
    depends_on:
      - mediawiki-db
    networks:
      - internal
      - proxy
    labels:
      - traefik.enable=true
      - traefik.backend=mediawiki
      - traefik.docker.network=proxy
      - traefik.port=8080
      - traefik.frontend.rule=Host:my.domain.com
    volumes:
      - /opt/mediawiki/LocalSettings.php:/var/www/mediawiki/LocalSettings.php
      - /opt/mediawiki/images:/var/www/mediawiki/images
    restart: always
    
mediawiki-db:
    image: mysql
    container_name: mediawiki-db
    command: ["--default-authentication-plugin=mysql_native_password"]
    restart: unless-stopped
    ports:
      - "3308:3306"
    volumes:
      - /opt/mediawiki-db:/var/lib/mysql
    networks:
      - internal
    labels:
      - traefik.enable=false
 
networks:
    proxy:
        external: true
    internal:
        external: false

Give permissions 999:999 to the volumes you mount inside the container.

License

The image is licensed under the MIT license. Please see the separate license file for details.

About

Dockerized MediaWiki running under Nginx and PHP-FPM. Based on the official PHP7 image. Packaged with VisualEditor plugin and Parsoid service.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 77.1%
  • Shell 12.3%
  • Python 10.6%