Skip to content

Instantly share code, notes, and snippets.

@mkwardakov
Created March 12, 2022 15:09
Show Gist options
  • Save mkwardakov/eeccf2ab883b05498a35718c8c6ad18b to your computer and use it in GitHub Desktop.
Save mkwardakov/eeccf2ab883b05498a35718c8c6ad18b to your computer and use it in GitHub Desktop.
# MediaWiki with MariaDB
#
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3'
services:
mediawiki:
image: mediawiki
restart: always
ports:
- 8080:80
links:
- database
volumes:
- /var/www/html/images
- ./lurkmoreto-20210415-wikidump:/var/www/html/lurkmore
# 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
ports:
- 3306:3306
restart: always
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MARIADB_DATABASE: 'lurk'
MARIADB_USER: 'user'
MARIADB_PASSWORD: 'password'
MARIADB_ROOT_PASSWORD: 'password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment