MediaWiki - eekbot/public GitHub Wiki

# Created a directory called MediaWiki

# Create a directory called images within that directory.

# Inside that directory, I created a docker-compose.yml file that contains the contents below (within the hash lines).


#############

# MediaWiki with MariaDB
#
# Access via "http://localhost:8080"
#   (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3.2'
services:
  mediawiki:
    image: mediawiki:1.39.3
    restart: always
    ports:
      - 8080:80
    links:
      - database
    volumes:
      - ./images:/var/www/html/images
      # After initial setup, download LocalSettings.php to the same directory as
      # this yaml and uncomment the following line and use compose to restart
      # the mediawiki service
      # - ./LocalSettings.php:/var/www/html/LocalSettings.php
  # This key also defines the name of the database host used during setup instead of the default "localhost"
  database:
    image: mariadb:10.11.2-jammy
    restart: always
    environment:
      # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
      MYSQL_DATABASE: wikimedia
      MYSQL_USER: 'wikiuser'
      MYSQL_PASSWORD: 'wikipass'
      MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
    volumes:
      - database:/var/lib/mysql

volumes:
  images:
  database:

#############

# Go to a command line, and run the command:  docker-compose u -d

# Open a web browser and browse to localhost:8080

# Click Next until you get to the database page.
    - Database host: database
    - Database name: wikimedia
    - Database username: wikiuser
    - Database password: wikipass
    - Click Next

# On the Name page:
    - Name of wiki: Eekimedia
    - Username: blahuser
    - Password: blahpassword

# After the install, download the LocalSettings.php file and move it to the same directory as my docker-compose.yml file.
⚠️ **GitHub.com Fallback** ⚠️