mediawiki
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11
|
||||
environment:
|
||||
MARIADB_USER: wiki
|
||||
MARIADB_PASSWORD: {{ mediawiki_db_password }}
|
||||
MARIADB_DATABASE: wiki
|
||||
MARIADB_RANDOM_ROOT_PASSWORD: 1
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./mysql/conf.d:/etc/mysql/conf.d
|
||||
mediawiki:
|
||||
image: mediawiki
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- images:/var/www/html/images
|
||||
- ./LocalSettings.php:/var/www/html/LocalSettings.php
|
||||
networks:
|
||||
- proxy
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
# 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
|
||||
# This key also defines the name of the database host used during setup instead of the default "localhost"
|
||||
# database:
|
||||
# image: mariadb
|
||||
# restart: always
|
||||
# environment:
|
||||
# # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
|
||||
# MYSQL_DATABASE: my_wiki
|
||||
# MYSQL_USER: wikiuser
|
||||
# MYSQL_PASSWORD: example
|
||||
# MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
||||
# volumes:
|
||||
# - db:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
images:
|
||||
# db:
|
||||
Reference in New Issue
Block a user