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.extra.yml
123 lines (117 loc) · 3.12 KB
/
docker-compose.extra.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
# Additional services example
version: '3.4'
x-common-variables: &wikibase_extra_variables
MW_ELASTIC_HOST: ${MW_ELASTIC_HOST}
MW_ELASTIC_PORT: ${MW_ELASTIC_PORT}
services:
wikibase:
volumes:
- quickstatements-data:/quickstatements/data
- ./extra-install.sh:/extra-install.sh
environment:
<<: *wikibase_extra_variables
wikibase_jobrunner:
environment:
<<: *wikibase_extra_variables
elasticsearch:
image: "${ELASTICSEARCH_IMAGE_NAME}"
restart: unless-stopped
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
networks:
default:
aliases:
- elasticsearch.svc
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
wdqs-frontend:
image: "${WDQS_FRONTEND_IMAGE_NAME}"
restart: unless-stopped
volumes:
- ./berd/custom-config.json:/templates/custom-config.json
ports:
- "${WDQS_FRONTEND_PORT}:80"
depends_on:
- wdqs-proxy
networks:
default:
aliases:
- ${WDQS_FRONTEND_HOST}
environment:
- BRAND_TITLE=${BRAND_TITLE}
- 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
# CONFIG - WIKIBASE_SCHEME can be set to 'https' if the updater should expect https concept uris
quickstatements:
image: "${QUICKSTATEMENTS_IMAGE_NAME}"
restart: unless-stopped
volumes:
- quickstatements-data:/quickstatements/data
ports:
- "${QUICKSTATEMENTS_PORT}:80"
depends_on:
- wikibase
networks:
default:
aliases:
- ${QUICKSTATEMENTS_HOST}
environment:
- QUICKSTATEMENTS_HOST
- WIKIBASE_SCHEME_AND_HOST=http://wikibase-docker.svc
- QS_PUBLIC_SCHEME_HOST_AND_PORT=http://${QUICKSTATEMENTS_HOST}:${QUICKSTATEMENTS_PORT}
- WB_PUBLIC_SCHEME_HOST_AND_PORT=http://${WIKIBASE_HOST}:${WIKIBASE_PORT}
- WB_PROPERTY_NAMESPACE=122
- "WB_PROPERTY_PREFIX=Property:"
- WB_ITEM_NAMESPACE=120
- "WB_ITEM_PREFIX=Item:"
- OAUTH_CONSUMER_KEY=${OAUTH_CONSUMER_KEY}
- OAUTH_CONSUMER_SECRET=${OAUTH_CONSUMER_SECRET}
volumes:
LocalSettings:
query-service-data:
elasticsearch-data:
quickstatements-data:
mediawiki-mysql-data: