forked from wmde/wikibase-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-build.yml
162 lines (160 loc) · 3.95 KB
/
docker-compose-build.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Wikibase with Query Service
#
# This docker-compose example can be used to build and run the images.
#
# Access Wikibase via "http://localhost:8181"
# (or "http://$(docker-machine ip):8181" if using docker-machine)
#
# Access Query Service via "http://localhost:8282"
# (or "http://$(docker-machine ip):8282" if using docker-machine)
version: '3'
services:
wikibase:
image: wikibase/wikibase:1.32-bundle
build:
context: ./wikibase/1.32/bundle
dockerfile: Dockerfile
links:
- mysql
ports:
- "8181:80"
volumes:
- mediawiki-images-data:/var/www/html/images
- quickstatements-data:/quickstatements/data
depends_on:
- mysql
- elasticsearch
networks:
default:
aliases:
- wikibase.svc
environment:
- DB_SERVER=mysql.svc:3306
- DB_USER=wikiuser
- DB_PASS=sqlpass
- DB_NAME=my_wiki
- MW_ADMIN_NAME=admin
- MW_ADMIN_PASS=adminpass
- MW_ADMIN_EMAIL=admin@example.com
- MW_WG_SECRET_KEY=secretkey
- MW_ELASTIC_HOST=elasticsearch.svc
- MW_ELASTIC_PORT=9200
- QS_PUBLIC_SCHEME_HOST_AND_PORT=http://localhost:9191
mysql:
image: mariadb:latest
volumes:
- mediawiki-mysql-data:/var/lib/mysql
environment:
MYSQL_DATABASE: 'my_wiki'
MYSQL_USER: 'wikiuser'
MYSQL_PASSWORD: 'sqlpass'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
networks:
default:
aliases:
- mysql.svc
wdqs-frontend:
image: wikibase/wdqs-frontend:latest
build:
context: ./wdqs-frontend/latest
dockerfile: Dockerfile
ports:
- "8282:80"
depends_on:
- wdqs-proxy
networks:
default:
aliases:
- wdqs-frontend.svc
environment:
- WIKIBASE_HOST=wikibase.svc
- WDQS_HOST=wdqs-proxy.svc
wdqs:
image: wikibase/wdqs:0.3.0
restart: always
build:
context: ./wdqs/0.3.0
dockerfile: Dockerfile
volumes:
- query-service-data:/wdqs/data
command: /runBlazegraph.sh
networks:
default:
aliases:
- wdqs.svc
environment:
- WIKIBASE_HOST=wikibase.svc
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
expose:
- 9999
wdqs-proxy:
image: wikibase/wdqs-proxy
build:
context: ./wdqs-proxy/latest
dockerfile: Dockerfile
environment:
- PROXY_PASS_HOST=wdqs.svc:9999
ports:
- "8989:80"
depends_on:
- wdqs
networks:
default:
aliases:
- wdqs-proxy.svc
wdqs-updater:
image: wikibase/wdqs:0.3.0
build:
context: ./wdqs/0.3.0
dockerfile: Dockerfile
command: /runUpdate.sh
depends_on:
- wdqs
- wikibase
networks:
default:
aliases:
- wdqs-updater.svc
environment:
- WIKIBASE_HOST=wikibase.svc
- WDQS_HOST=wdqs.svc
- WDQS_PORT=9999
elasticsearch:
image: elasticsearch@sha256:f1dbf2019dc9a4ca5dd458635bfb31f9a601e4905e1d6ca1d65a3958d428f497
networks:
default:
aliases:
- elasticsearch.svc
environment:
discovery.type: single-node
quickstatements:
image: wikibase/quickstatements:latest
build:
context: ./quickstatements/latest
dockerfile: Dockerfile
ports:
- "9191:80"
depends_on:
- wikibase
volumes:
- quickstatements-data:/quickstatements/data
networks:
default:
aliases:
- quickstatements.svc
environment:
- OAUTH_CONSUMER_KEY=559fcf1da153c5ec4b2fbefa7c3c395b
- OAUTH_CONSUMER_SECRET=57cad33da0015dce1e94a597908e19848714a6af
- QS_PUBLIC_SCHEME_HOST_AND_PORT=http://localhost:9191
- WB_PUBLIC_SCHEME_HOST_AND_PORT=http://localhost:8181
- WIKIBASE_SCHEME_AND_HOST=http://wikibase.svc
- WB_PROPERTY_NAMESPACE=122
- "WB_PROPERTY_PREFIX=Property:"
- WB_ITEM_NAMESPACE=120
- "WB_ITEM_PREFIX=Item:"
volumes:
mediawiki-mysql-data:
mediawiki-images-data:
query-service-data:
quickstatements-data: