-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.extra.yml
130 lines (120 loc) · 3.16 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
124
125
126
127
128
129
130
# 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
QS_PUBLIC_SCHEME_HOST_AND_PORT:
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: "-Xms4g -Xmx4g -Dlog4j2.formatMsgNoLookups=true"
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
- BRAND_TITLE=EU Knowledge Graph Query Service
wdqs:
image: "${WDQS_IMAGE_NAME}"
restart: unless-stopped
command: /runBlazegraph.sh
volumes:
- query-service-data:/wdqs/data
- ./prefixes.conf:/wdqs/prefixes.conf
- ./whitelist.txt:/wdqs/whitelist.txt
networks:
default:
aliases:
- wdqs.svc
environment:
- WIKIBASE_HOST=${WIKIBASE_HOST}
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
- HEAP_SIZE=8g
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
- WIKIBASE_SCHEME=https
# 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
# - QS_PUBLIC_SCHEME_HOST_AND_PORT
# - WIKIBASE_SCHEME_AND_HOST=http://wikibase-docker.svc
# - WB_PUBLIC_SCHEME_HOST_AND_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: