This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
144 lines (136 loc) · 3.54 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# 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}
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
## also uncomment the same line in the wikibase_jobrunner service!
#- ./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.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
## Uncomment this next line to mount your own LocalSettings.php file
## also uncomment the same line in the wikibase service
#- ./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
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
wdqs-frontend:
image: "${WDQS_FRONTEND_IMAGE_NAME}"
restart: unless-stopped
ports:
- "${WDQS_FRONTEND_PORT}:80"
depends_on:
- wdqs-proxy
networks:
default:
aliases:
- ${WDQS_FRONTEND_HOST}
environment:
- WIKIBASE_HOST=${WIKIBASE_HOST}
- WDQS_HOST=wdqs-proxy.svc
wdqs:
image: "${WDQS_IMAGE_NAME}"
restart: unless-stopped
command: /runBlazegraph.sh
volumes:
- query-service-data:/wdqs/data
networks:
default:
aliases:
- wdqs.svc
environment:
- WIKIBASE_HOST=${WIKIBASE_HOST}
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
expose:
- 9999
wdqs-proxy:
image: "${WDQS_PROXY_IMAGE_NAME}"
restart: unless-stopped
environment:
- PROXY_PASS_HOST=wdqs.svc:9999
depends_on:
- wdqs
networks:
default:
aliases:
- wdqs-proxy.svc
wdqs-updater:
image: "${WDQS_IMAGE_NAME}"
restart: unless-stopped
command: /runUpdate.sh
depends_on:
- wdqs
- wikibase
networks:
default:
aliases:
- wdqs-updater.svc
environment:
- WIKIBASE_HOST=${WIKIBASE_HOST}
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
volumes:
shared:
mediawiki-mysql-data:
query-service-data: