Add default MYSQL_PASSWORD and example LocalSettings volume

This commit is contained in:
David Barratt 2017-08-23 12:16:09 -04:00
parent 99d9fa915c
commit 4a0cb96d57
1 changed files with 5 additions and 0 deletions

View File

@ -12,10 +12,15 @@ services:
- database
volumes:
- /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
database:
image: mariadb
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: 'my_wiki'
MYSQL_USER: 'wikiuser'
MYSQL_PASSWORD: ''
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'