Skip to content

Instantly share code, notes, and snippets.

@thiago-rezende
Last active August 18, 2020 02:23
Show Gist options
  • Save thiago-rezende/439a9f8bd84d3b5398f6c9f9cfa70d07 to your computer and use it in GitHub Desktop.
Save thiago-rezende/439a9f8bd84d3b5398f6c9f9cfa70d07 to your computer and use it in GitHub Desktop.
version: '3'
services:
mediawiki:
image: mediawiki
restart: unless-stopped
ports:
- 80:80
networks:
- wikinet
volumes:
- ./volumes/mediawiki/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
# - ./volumes/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
restart: unless-stopped
ports:
- 3306:3306
networks:
- wikinet
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_ROOT_PASSWORD: super-secret
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
volumes:
- ./volumes/mysql/data:/var/lib/mysql
networks:
wikinet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment