-
Notifications
You must be signed in to change notification settings - Fork 1
/
wiki.yml
54 lines (49 loc) · 1.34 KB
/
wiki.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
version: "3.8"
services:
app:
image: ghcr.io/zechmeister/agora/wiki:4
hostname: app
env_file: wiki/$ENV.env
volumes:
- mediawiki:/var/www/html
networks:
- wiki-backend
- edge
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.wiki.rule=Host(`wiki.$HOST`) || Host(`webcheck.wiki.$HOST`)"
- "traefik.http.services.wiki.loadbalancer.server.port=80"
- "traefik.http.routers.wiki.tls=true"
- "traefik.http.routers.wiki.tls.certresolver=myresolver"
# Headers for x-frames
- "traefik.http.middlewares.wikiFrame.headers.contentSecurityPolicy=frame-ancestors 'self' https://$HOST"
- "traefik.http.routers.wiki.middlewares=wikiFrame"
secrets:
- source: local-settings
target: /var/www/html/LocalSettings.php
db:
image: mariadb:10.6
volumes:
- mediawiki_db:/var/lib/mysql
environment:
MYSQL_DATABASE: mediawiki
MYSQL_USER: agora
MYSQL_PASSWORD_FILE: /run/secrets/db_password
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
networks:
- wiki-backend
secrets:
- db_password
secrets:
local-settings:
file: ./wiki/LocalSettings.$ENV.php
db_password:
file: ./wiki/db_password.$ENV.txt
volumes:
mediawiki:
mediawiki_db:
networks:
wiki-backend:
edge:
external: true