This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
87 lines (80 loc) · 2.3 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
# 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}
# 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
- ./berd/LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
- ./berd/logo_berdc_bw.jpg:/var/www/html/logo_berdc_bw.jpg
- ./berd/TimelessTemplate.php:/var/www/html/skins/Timeless/includes/TimelessTemplate.php
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
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
ports:
- "127.0.0.1:63306:3306"
volumes:
shared:
mediawiki-mysql-data: