-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
91 lines (86 loc) · 2.05 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
version: '3'
services:
wdqs:
image: ghcr.io/wbstack/queryservice:main
volumes:
- query-service-data:/wdqs/data
environment:
- WDQS_HOST=wdqs.mw.localhost
- WDQS_PORT=9999
- WDQS_ENTITY_NAMESPACES=120,122,146
- WIKIBASE_SCHEME=http
restart: unless-stopped
command: /runBlazegraph.sh
networks:
default:
aliases:
- wdqs.svc
ports:
- "9999:9999"
expose:
- 9999
api:
build:
context: ./seeder/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3030:3030"
networks:
default:
aliases:
- api.svc
depends_on:
wikibase:
condition: service_healthy
environment:
- API_WIKIBASE_DOMAIN=wikibase.svc
- API_WDQS_BACKEND=wdqs.svc:9999
wikibase:
image: "${WIKIBASE_IMAGE_NAME}"
links:
- mysql
depends_on:
- mysql
restart: unless-stopped
ports:
- "${WIKIBASE_PORT}:80"
networks:
default:
aliases:
- wikibase.svc
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/w/api.php"]
interval: 1s
timeout: 3s
retries: 30
volumes:
- ./LocalSettings.ci.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
environment:
DB_SERVER: mysql.svc:3306
MW_ADMIN_NAME:
MW_ADMIN_PASS: ${MW_ADMIN_PASS}
MW_ADMIN_EMAIL: ${MW_ADMIN_EMAIL}
MW_WG_SECRET_KEY: ${MW_SECRET_KEY}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
WIKIBASE_HOST: ${WIKIBASE_HOST}
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
volumes:
query-service-data:
mediawiki-mysql-data: