-
Notifications
You must be signed in to change notification settings - Fork 1
/
tipi-compose.yml
executable file
·45 lines (41 loc) · 2.21 KB
/
tipi-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
version: "3.9"
# tested with runtipi v3.1.3
services:
runtipi-reverse-proxy:
#image: traefik:v3.1.4
ports:
- 8080:8080
volumes:
- /etc/localtime:/etc/localtime:ro
- ./app-data/traefik/etc:/etc/traefik
- ./app-data/traefik/plugins-local:/plugins-local
- ./app-data/traefik/shared:/shared
- /var/log/traefik/:/var/log/
runtipi:
labels:
# ---- General ----- #
# ---- Dashboard ----- #
# Local ip
traefik.http.routers.dashboard.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/`)
# Websecure
traefik.http.routers.dashboard-secure.middlewares: authentik@file, geoblock@file
# Secure
traefik.http.routers.dashboard-local.middlewares: local-ipallowlist@file
# ---- Worker ----- #
# Local ip
traefik.http.routers.worker.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/worker`)
# Websecure
traefik.http.routers.worker-insecure.rule: Host(`${DOMAIN}`) && PathPrefix(`/worker`)
traefik.http.routers.worker-secure.rule: Host(`${DOMAIN}`) && PathPrefix(`/worker`)
traefik.http.routers.worker-secure.middlewares: authentik@file, geoblock@file
traefik.http.routers.worker-api-insecure.rule: Host(`${DOMAIN}`) && PathPrefix(`/worker-api`)
traefik.http.routers.worker-api-secure.rule: Host(`${DOMAIN}`) && PathPrefix(`/worker-api`)
traefik.http.routers.worker-api-secure.middlewares: authentik@file, geoblock@file
# Local domain
traefik.http.routers.worker-local-insecure.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/worker`)
traefik.http.routers.worker-api-local-insecure.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/worker-api`)
# Secure
traefik.http.routers.worker-local.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/worker`)
traefik.http.routers.worker-api-local.rule: (Host(`${INTERNAL_IP}`) || Host(`tipi.${LOCAL_DOMAIN}`)) && PathPrefix(`/worker-api`)
traefik.http.routers.worker-local.middlewares: local-ipallowlist@file
traefik.http.routers.worker-api-local.middlewares: local-ipallowlist@file