-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (50 loc) · 1.56 KB
/
docker-compose.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
mediawiki:
container_name: dtekwiki
build: .
image: dtek/mediawiki:latest
restart: unless-stopped
ports:
- 8081:80
depends_on:
- db
# - parsoid
links:
- db
# - parsoid
volumes:
- ./.htaccess:/var/www/html/.htaccess
- ./images:/var/www/html/images
- ./logo.png:/var/www/html/resources/assets/logo.png
- ./logo.svg:/var/www/html/resources/assets/logo.svg
- ./php-conf:/usr/local/etc/php/conf.d/
# 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
- ./sensitiveSettings.php:/var/www/html/sensitiveSettings.php
- ./rewrite.load:/etc/apache2/mods-enabled/rewrite.load
environment:
MW_REST_DOMAIN: wiki.dtek.se
db:
container_name: dtekwiki-mariadb
image: mariadb
restart: unless-stopped
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:
- ./mariadb/data:/var/lib/mysql
# parsoid:
# container_name: dtekwiki-parsoid
# image: thenets/parsoid:0.10.0
# restart: unless-stopped
# volumes:
# - ./run-parsoid.sh:/run-parsoid.sh
# environment:
# PARSOID_DOMAIN_dummy: http://dummy
# PARSOID_NUM_WORKERS: ncpu