-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
mediawiki.yml
44 lines (40 loc) · 1.22 KB
/
mediawiki.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
# DOMAIN=example.com docker stack deploy -c mediawiki.yml mediawiki
# chown -R 33:33 data/
# wget https://releases.wikimedia.org/mediawiki/1.39/mediawiki-1.39.1.tar.gz
services:
app:
image: mediawiki:${VERSION:-1.40.0}
volumes:
- ${VOLUME_PATH}data:/var/www/html:cached
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.mediawiki-${NUMBER:-1}.rule=Host(`${DOMAIN:-mediawiki.localhost}`)
- traefik.http.routers.mediawiki-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.mediawiki-${NUMBER:-1}.service=mediawiki-${NUMBER:-1}
- traefik.http.routers.mediawiki-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.mediawiki-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
mariadb:
image: mariadb:10.5.9
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=mediawiki
- MYSQL_USER=mediawiki
- MYSQL_PASSWORD=myp@ssw0rd
networks:
- internal
volumes:
data:
mariadb:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net