forked from ubc/mediawiki-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (120 loc) · 4.83 KB
/
docker-compose.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '2'
services:
db:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./.data/db:/var/lib/mysql
ports:
- 3306:3306
web: &app
image: ubcctlt/mediawiki
build: .
ports:
- 8080:80
# use the links section if you want to use a container for a database.
# if not, and you want to use an external database server, configure
# if with the environment variables in the 'environment' section.
# see README.md for more details.
links:
- db
# uncomment the 'volumes' section to enable a shared volume with docker-compose
volumes:
- ./.data/web:/data:rw
- ./CustomSettings.php:/conf/CustomSettings.php
# do not uncomment this when starting a new instance from scratch as
# init script won't be able to move this file
#- ./LocalSettings.php:/var/www/html/LocalSettings.php
#- ./CustomHooks.php:/var/www/html/CustomHooks.php
# FIXME this is a custom change on Parsoid PHP implementation since mw 1.35.
# the Parsoid domain is not configurable. so we needed to disable the check as we are using "localhost" in Restbase redirection
- ./ParsoidHandler_custom_1_35.php:/var/www/html/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php
environment:
- MEDIAWIKI_SITE_SERVER=http://localhost:8080
- MEDIAWIKI_SITE_NAME=My Awesome Wiki
- MEDIAWIKI_DB_HOST=db
- MEDIAWIKI_DB_PASSWORD=password
# uncomment 'MEDIAWIKI_ENABLE_SSL' to enable SSL support
# - MEDIAWIKI_ENABLE_SSL=true
- MEDIAWIKI_EXTENSIONS=VisualEditor,WikiEditor,ParserFunctions,Cite,TemplateData,Scribunto,InputBox,Widgets,Maps,Math,LiquidThreads,Variables,RightFunctions,PageInCat,CategoryTree,LabeledSectionTransclusion,UserPageEditProtection,Quiz,UploadWizard,Collection,DynamicPageList,EmbedPage,UWUBCMessages,googleAnalytics,Renameuser,caliper,DeleteBatch,LinkTarget,HitCounters,GTag
- MEDIAWIKI_ALLOW_SITE_CSS_ON_RESTRICTED_PAGES=true
- PARSOID_DOMAIN=localhost
- RESTBASE_URL=http://nodeservices:7231
- LDAP_DOMAIN=CWL
- LDAP_SERVER=ldap
- LDAP_ENCRYPTION_TYPE=clear
- LDAP_SEARCH_ATTRS=cn
- LDAP_PROXY_AGENT=cn=admin,dc=example,dc=org
- LDAP_PROXY_PASSWORD=admin
- LDAP_BASE_DN=dc=example,dc=org
- LDAP_USER_BASE_DN=dc=example,dc=org
- LDAP_USERNAME_ATTR=cn
- LDAP_REALNAME_ATTR=displayname
- LDAP_EMAIL_ATTR=mail
- UBC_AUTH_ENABLED=true
# FIXME skip domain checking in Parsoid. used in our own ParsoidHandler_custom_xxxx.php.
# in our Apache conf file, we are redirecting requests to restbase with domain "localhost",
# but the Parsoid domain is not configurable. hence disable the check.
- PARSOID_SKIP_DOAMIN_CHECK=true
- AUTO_CREATED_USER_REDIRECT=UBC_Wiki:Welcome
- MEDIAWIKI_MAIN_CACHE=redis
- MEDIAWIKI_REDIS_HOST=redis
- MEDIAWIKI_REDIS_PORT=6379
#- MEDIAWIKI_REDIS_PASSWORD=
- MEDIAWIKI_REDIS_PERSISTENT=true
#- MEDIAWIKI_MAIN_CACHE=CACHE_NONE
#- MEDIAWIKI_MEMCACHED_SERVERS=["memcached:11211"]
# uncomment to specify the wgUploadPath
# - MEDIAWIKI_UPLOAD_PATH=
#- GOOGLE_ANALYTICS_ID=UA-XXXXXXX-XX
# GoogleAnalyticsMetrics: https://www.mediawiki.org/wiki/Extension:GoogleAnalyticsMetrics
#- GOOGLE_ANALYTICS_METRICS_ALLOWED
#- GOOGLE_ANALYTICS_METRICS_PATH
#- GOOGLE_ANALYTICS_METRICS_VIEWID
- DEBUG=true
# - CALIPER_HOST=https://caliper.imsglobal.org/caliper/PUT_TEST_BEARER_TOKEN_HERE/message
# - CALIPER_API_KEY=PUT_TEST_BEARER_TOKEN_HERE
# - CALIPER_BASE_URL=http://localhost:8888/test_url/
# - CALIPER_LDAP_ACTOR_HOMEPAGE=http://media_wiki_ldap_homepage
job_runner:
<<: *app
command: php /var/www/html/maintenance/runJobs.php --wait
ports:
- 8081:80
# use combined image for now
# parsoid:
# image: ubcctlt/parsoid
# environment:
# - MEDIAWIKI_API_URL=http://web/w/api.php
# - MEDIAWIKI_DOMAIN=localhost
# - MEDIAWIKI_PREFIX=localhost
# restbase:
# image: ubcctlt/restbase
# environment:
# - MEDIAWIKI_API_URL=http://web/w/api.php
# - PARSOID_DOMAIN=localhost
# - PARSOID_URL=http://parsoid:8000
nodeservices:
image: ubcctlt/mediawiki-node-services
ports:
- 7231:7231
environment:
- MEDIAWIKI_API_URL=http://web/api.php
- MEDIAWIKI_REST_URL=http://web/rest.php
- LOG_LEVEL=debug
volumes:
- ./.data/services:/data
ldap:
image: osixia/openldap:1.1.9
command: --copy-service
ports:
- 1389:389
volumes:
- ./dev/ldapadd_ubcedu.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/ldapadd_ubcedu.ldif
- ./.data/ldap:/var/lib/ldap
- ./.data/slapd.d:/etc/ldap/slapd.d
# memcached:
# image: memcached:1.5-alpine
redis:
image: redis:6.0-alpine