-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (56 loc) · 1.55 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
version: '3'
services:
app:
image: mediawiki:lts
restart: unless-stopped
# Traefik labels are suggested as an example for people using Traefik,
# remove them if you are using another reverse proxy.
labels:
traefik.enable: 'true'
traefik.http.routers.mediawiki.entrypoints: websecure
traefik.http.routers.mediawiki.rule: "Host(`${HOSTNAME}`)"
traefik.http.routers.mediawiki.tls.certresolver: myresolver
traefik.http.services.mediawiki.loadbalancer.server.port: 80
networks:
- web
- default
# If you don't want to use a reverse proxy (not suitable for production!)
# ports:
# - "80:80"
volumes:
- images:/var/www/html/images
- extensions:/var/www/html/extensions
- skins:/var/www/html/skins
# After initial setup, download LocalSettings.php to the volume directory
# and uncomment the following line and use compose to restart the
# mediawiki service
# - ./docker-volumes/LocalSettings.php:/var/www/html/LocalSettings.php
depends_on:
- db
- parsoid
- redis
db:
image: mariadb
restart: unless-stopped
volumes:
- db:/var/lib/mysql
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
env_file:
- db.env
parsoid:
image: thenets/parsoid:0.10
environment:
PARSOID_DOMAIN_hostname: "https://${HOSTNAME}/api.php"
redis:
image: redis:alpine
networks:
web:
external: true
volumes:
db:
extensions:
images:
skins: