-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
115 lines (112 loc) · 2.23 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# MediaWiki with MariaDB
#
# Setup a custom entry in /etc/hosts for localhost (e.g. mediawiki)
# then access via "http://mediawiki"
version: "3"
services:
mediawiki:
image: mediawiki
restart: always
links:
- database
ports:
- 8080:80
volumes:
- ./mediawiki/images:/var/www/html/images
- ./mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php
- ./mediawiki/extensions/Collection:/var/www/html/extensions/Collection
- ./cache:/app/cache
database:
image: mariadb
restart: always
environment:
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
volumes:
- db:/var/lib/mysql
#
#base:
# build:
# context: .
# dockerfile: docker/Dockerfile.base
# image: mw-base
#
#q_serve:
# build:
# context: .
# dockerfile: docker/QServe.Dockerfile
# ports:
# - "8090:8090"
# depends_on:
# - base
# expose:
# - "8090"
# volumes:
# - ./cache:/app/cache
#
#
#job_dispatcher:
# build:
# context: .
# dockerfile: docker/JobDispatcher.Dockerfile
# ports:
# - "8899:8899"
# depends_on:
# - base
# - q_serve
# expose:
# - "8899"
# extra_hosts:
# - "pediapress.com:host-gateway"
#
#zip_worker:
# build:
# context: .
# dockerfile: docker/Worker.Dockerfile
# command: >
# nslave
# --cachedir /app/cache
# --host q_serve
# --port 8090
# --numprocs 2
# -c makezip
# depends_on:
# - base
# - q_serve
# volumes:
# - ./cache:/app/cache
#
#render_worker:
# build:
# context: .
# dockerfile: docker/Worker.Dockerfile
# depends_on:
# - base
# - q_serve
# command: >
# nslave
# --cachedir /app/cache
# --host q_serve
# --port 8090
# --numprocs 2
# --url http://render_worker:9123/cache
# -s makezip
# volumes:
# - ./cache:/app/cache
reverse_proxy:
image: nginx
ports:
- "80:80"
expose:
- "80"
volumes:
- ./nginx:/etc/nginx/conf.d
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
db:
mediawiki: