forked from pastakhov/compose-mediawiki-ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (93 loc) · 3.25 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
version: '2'
services:
db:
#image: pastakhov/mysql:5.7
image: mysql:8.0.17
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=3dodPaTXF5
proxy:
image: pastakhov/varnish-mediawiki:1.0
restart: always
depends_on:
- web
# - restbase
ports:
- "8080:80"
environment:
- PROXY_BACKEND_web=web:80
# - PROXY_BACKEND_restbase=restbase:7231
# - PROXY_RESTBASE_BACKEND=restbase
# - PROXY_RESTBASE_URL=^/api/rest_v1
# - PROXY_RESTBASE_SUB=/{backend_hint}/v1
web:
build:
context: ./web
dockerfile: Dockerfile
restart: always
depends_on:
- db
- elasticsearch
- memcached
- parsoid
#- restbase
environment:
- MW_SITE_SERVER=https://localhost:443 #overwritten in web/CustomSettings.php
- MW_SITE_NAME=Wiki #overwritten in web/CustomSettings.php
- MW_SITE_LANG=en
- MW_DEFAULT_SKIN=chameleon
- MW_ENABLE_UPLOADS=1
- MW_USE_INSTANT_COMMONS=0
- MW_ADMIN_USER=admin
- MW_ADMIN_PASS=LJAwje3438
- MW_DB_NAME=mediawiki
- MW_DB_USER=mwuser
- MW_DB_PASS=8Xgat7mUKa
- MW_DB_INSTALLDB_USER=root
- MW_DB_INSTALLDB_PASS=3dodPaTXF5
- MW_AUTOUPDATE=true
- MW_PROXY_SERVERS=proxy
- MW_MAIN_CACHE_TYPE=CACHE_MEMCACHED
- MW_MEMCACHED_SERVERS=memcached:11211
- MW_SEARCH_TYPE=CirrusSearch
- MW_CIRRUS_SEARCH_SERVERS=elasticsearch
- MW_REST_DOMAIN=web
- MW_REST_PARSOID_URL=http://parsoid:8000
#- MW_REST_RESTBASE_URL=http://restbase:7231 #disabled for private wiki
#- MW_REST_RESTBASE_PROXY_PATH=/api/rest_ #disabled for private wiki
- MW_FLOW_NAMESPACES=NS_TALK,NS_USER_TALK
- PHP_LOG_ERRORS=On
- PHP_ERROR_REPORTING=E_ALL #Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
memcached:
image: memcached
restart: always
parsoid:
#image: pastakhov/parsoid:0.7.1
image: thenets/parsoid:0.10
restart: always
environment:
- PARSOID_NUM_WORKERS=0
- PARSOID_DOMAIN_web=http://web/w/api.php
#restbase:
# image: pastakhov/restbase:0.16.9
# restart: always
# environment:
# - RB_CONF_NUM_WORKERS=0
# - RB_CONF_DOMAIN_web=http://web/w/api.php
# - RB_CONF_PARSOID_HOST=http://parsoid:8000
# - RB_CONF_BASE_URI_TEMPLATE=http://{domain}/api/rest_v1
# - RB_CONF_API_URI_TEMPLATE=http://{domain}/w/api.php
# - RB_CONF_LOGGING_LEVEL=info #trace
# - RB_CONF_PDF_URI=http://pdf:3000
elasticsearch:
image: elasticsearch:5.6
restart: always
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
#pdf:
# image: msokk/electron-render-service
# restart: always
# environment:
# RENDERER_ACCESS_KEY: secret