-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmediawiki.yaml
29 lines (29 loc) · 929 Bytes
/
mediawiki.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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:
- 8081:80
links:
- database
volumes:
#- /var/www/html/images
- /data/docker/mediawiki/data:/var/www/data
- /data/docker/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php
# 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
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"