-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
96 lines (90 loc) · 3.1 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
# Example Wikibase docker-compose setup
version: '3.4'
x-common-variables: &wikibase_variables
DB_SERVER: mysql.svc:3306
MW_ADMIN_NAME: ${MW_ADMIN_NAME}
MW_ADMIN_PASS: ${MW_ADMIN_PASS}
MW_ADMIN_EMAIL: ${MW_ADMIN_EMAIL}
MW_WG_SECRET_KEY: ${MW_SECRET_KEY}
CAS_CLIENT_ID: ${CAS_CLIENT_ID}
CAS_CLIENT_SECRET: ${CAS_CLIENT_SECRET}
# Disable jobs running after requests when wikibase_jobrunner is defined
MW_WG_JOB_RUN_RATE: 0
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
WIKIBASE_HOST: ${WIKIBASE_HOST}
QS_PUBLIC_SCHEME_HOST_AND_PORT: http://${QUICKSTATEMENTS_HOST}:${QUICKSTATEMENTS_PORT}
services:
wikibase:
image: "${WIKIBASE_BUNDLE_IMAGE_NAME}"
links:
- mysql
depends_on:
- mysql
restart: unless-stopped
ports:
- "${WIKIBASE_PORT}:80"
volumes:
## This shares the configuration with jobrunner
- shared:/var/www/html/:rw
## Uncomment this next line to mount your own LocalSettings.php file
- ./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
- ./Wikibase.example.php:/var/www/html/extensions/Wikibase/repo/config/Wikibase.example.php
- ./extensions/JsonConfig:/var/www/html/extensions/JsonConfig
- ./extensions/Kartographer:/var/www/html/extensions/Kartographer
- ./extensions/WikibaseQualityConstraints:/var/www/html/extensions/WikibaseQualityConstraints
- ./extensions/CASAuth:/var/www/html/extensions/CASAuth
- ./extensions/BatchIngestion:/var/www/html/extensions/BatchIngestion
- ./extensions/WikibaseSync:/var/www/html/extensions/WikibaseSync
- ./jquery.wikibase.entityselector.js:/var/www/html/extensions/Wikibase/view/resources/jquery/wikibase/jquery.wikibase.entityselector.js
- ./jquery.wikibase.entitysearch.js:/var/www/html/extensions/Wikibase/repo/resources/jquery.wikibase/jquery.wikibase.entitysearch.js
- ./images:/var/www/html/images
networks:
default:
aliases:
#- ${WIKIBASE_HOST}
- wikibase-docker.svc
environment:
<<: *wikibase_variables
WIKIBASE_PINGBACK:
MW_WG_ENABLE_UPLOADS:
wikibase_jobrunner:
image: "${WIKIBASE_BUNDLE_IMAGE_NAME}"
entrypoint: /bin/bash
command: /jobrunner-entrypoint.sh
links:
- mysql
depends_on:
- mysql
restart: always
volumes:
- shared:/shared/:ro
- ./jobrunner-entrypoint.sh:/jobrunner-entrypoint.sh
networks:
default:
aliases:
- wikibase-jobrunner.svc
environment:
<<: *wikibase_variables
MAX_JOBS: ${MAX_JOBS}
mysql:
image: "${MYSQL_IMAGE_NAME}"
restart: unless-stopped
volumes:
- mediawiki-mysql-data:/var/lib/mysql
- mediawiki-mysql-dbdump:/var/lib/mysql-dump
environment:
# CONFIG - Change the default values below (should match values passed to wikibase)
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
networks:
default:
aliases:
- mysql.svc
volumes:
shared:
mediawiki-mysql-data:
mediawiki-mysql-dbdump: