This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
62 lines (57 loc) · 1.76 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
# WARNING: This is lacking several of the features of ./mediawiki-containers,
# and is thus not currently the recommended installation method. It is not
# currently maintained. Use at your own risk.
#
# Run MediaWiki, RESTBase & Parsoid using `docker-compose up`
mediawiki:
image: wikimedia/mediawiki
ports:
- "80:80"
dns: [172.17.42.1]
links:
- mysql
- node-services
- dnsdock
volumes:
- /var/lib/mediawiki-containers/mediawiki:/data:rw
# Inject our specific settings
- ./conf/mediawiki:/conf:ro
environment:
- MEDIAWIKI_SITE_SERVER=//localhost
- MEDIAWIKI_SITE_NAME=MediaWiki
- MEDIAWIKI_SITE_LANG=en
- MEDIAWIKI_ADMIN_USER=admin
- MEDIAWIKI_ADMIN_PASS=rosebud
- MEDIAWIKI_UPDATE=true
- MEDIAWIKI_VERSION=1.25.3
- MEDIAWIKI_DB_USER=root
- MEDIAWIKI_DB_HOST=mysql.docker
# Link to node services
- MEDIAWIKI_RESTBASE_URL=http://mediawiki-node-services.docker:7231/localhost/v1
node-services:
image: wikimedia/mediawiki-node-services
dns: [172.17.42.1]
# Temporarily expose RB port directly.
# TODO: Set up rewrite at /api/rest_v1/.
ports:
- "7231:7231"
volumes:
- /var/lib/mediawiki-containers/node-services:/data
environment:
- MEDIAWIKI_API_URL=http://mediawiki.docker/api.php
mysql:
image: mysql
dns: [172.17.42.1]
volumes:
- /var/lib/mediawiki-containers/mysql:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=password
# Light-weight DNS resolver to allow containers to address each other by name.
# Docker-compose's `link` mechanism only supports this one way, which is not
# sufficient for pairs like node-services & mediawiki.
dnsdock:
image: tonistiigi/dnsdock
volumes:
- /var/run/docker.sock:/run/docker.sock
ports:
- 172.17.42.1:53:53/udp