forked from ldtteam/MinecoloniesWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (68 loc) · 3.21 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
version: '3.8'
services:
jekyll-host:
image: container.ldtteam.com/ldtteam/minecolonies/wiki:latest
environment:
- JEKYLL_GITHUB_TOKEN=${GITHUB_TOKEN}
networks:
- traefik-public
deploy:
mode: replicated
replicas: 2
placement:
max_replicas_per_node: 1
constraints:
- node.labels.system==production
- node.labels.type==worker
- node.labels.web==true
labels:
- traefik.enable=true
- traefik.constraint-label=traefik-public
- traefik.docker.network=traefik-public
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
- traefik.http.routers.wiki-minecolonies-http.rule=Host(`wiki.minecolonies.ldtteam.com`)
- traefik.http.routers.wiki-minecolonies-http.entrypoints=http
- traefik.http.routers.wiki-minecolonies-http.middlewares=https-redirect
- traefik.http.routers.wiki-minecolonies-https.rule=Host(`wiki.minecolonies.ldtteam.com`)
- traefik.http.routers.wiki-minecolonies-https.entrypoints=https
- traefik.http.routers.wiki-minecolonies-https.tls=true
- traefik.http.routers.wiki-minecolonies-https.service=wiki-minecolonies
- traefik.http.routers.wiki-minecolonies-https.tls.certresolver=le
- traefik.http.services.wiki-minecolonies.loadbalancer.server.port=80
- traefik.http.services.wiki-minecolonies.loadBalancer.sticky.cookie.name=ldtteam-routing_minecolonies-wiki
- traefik.http.services.wiki-minecolonies.loadBalancer.sticky.cookie.secure=true
- traefik.http.services.wiki-minecolonies.loadBalancer.sticky.cookie.httpOnly=true
- traefik.http.services.wiki-minecolonies.loadBalancer.sticky.cookie.sameSite=none
redirect:
image: morbz/docker-web-redirect
networks:
- traefik-public
deploy:
mode: replicated
replicas: 1
placement:
max_replicas_per_node: 1
constraints:
- node.labels.system==production
- node.labels.type==worker
- node.labels.web==true
labels:
- traefik.enable=true
- traefik.constraint-label=traefik-public
- traefik.docker.network=traefik-public
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
- traefik.http.routers.wiki-minecolonies-redirect-http.rule=Host(`wiki.minecolonies.com`)
- traefik.http.routers.wiki-minecolonies-redirect-http.entrypoints=http
- traefik.http.routers.wiki-minecolonies-redirect-http.middlewares=https-redirect
- traefik.http.routers.wiki-minecolonies-redirect-https.rule=Host(`wiki.minecolonies.com`)
- traefik.http.routers.wiki-minecolonies-redirect-https.entrypoints=https
- traefik.http.routers.wiki-minecolonies-redirect-https.tls=true
- traefik.http.routers.wiki-minecolonies-redirect-https.tls.certresolver=le
- traefik.http.services.wiki-minecolonies-redirect.loadbalancer.server.port=80
environment:
- REDIRECT_TARGET=wiki.minecolonies.ldtteam.com
networks:
traefik-public:
external: true