generated from Vereine-Vereint/service.template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 1.4 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
networks:
traefik:
external: true
services:
orbitgs:
build:
context: ./orbitgs
dockerfile: ./docs/Dockerfile
restart: unless-stopped
# ports:
# - 80:80 # Port of service
networks:
- traefik # add to traefik network
labels:
- "traefik.enable=true"
- "traefik.http.routers.orbitgs.rule=Host(`${DOCS_HOST}`) && PathPrefix(`/orbitgs/`)"
- "traefik.http.routers.orbitgs.entrypoints=websecure"
- "traefik.http.routers.orbitgs.middlewares=authentik@file"
mainpage:
build: ./mainpage
restart: unless-stopped
# ports:
# - 80:80 # Port of service
networks:
- traefik # add to traefik network
labels:
- "traefik.enable=true"
- "traefik.http.routers.mainpage.rule=Host(`${DOCS_HOST}`) && PathPrefix(`/`)"
- "traefik.http.routers.mainpage.entrypoints=websecure"
- "traefik.http.routers.mainpage.middlewares=authentik@file"
# redirect on any other path to the /mainpage
- "traefik.http.routers.docs.rule=Host(`${DOCS_HOST}`)"
- "traefik.http.routers.docs.entrypoints=websecure"
- "traefik.http.routers.docs.middlewares=authentik@file,docs-redirect"
- "traefik.http.routers.docs.service=noop@internal"
- "traefik.http.middlewares.docs-redirect.redirectregex.regex=^https?://[^/]+/(.*)"
- "traefik.http.middlewares.docs-redirect.redirectregex.replacement=https://${DOCS_HOST}/"