From 16e957640408668b9bef2168d633d3b8a262497f Mon Sep 17 00:00:00 2001 From: Mahasri Kalavala Date: Sat, 6 May 2023 10:01:15 -0400 Subject: [PATCH] Create dynamic.yaml --- traefik/config/dynamic.yaml | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 traefik/config/dynamic.yaml diff --git a/traefik/config/dynamic.yaml b/traefik/config/dynamic.yaml new file mode 100644 index 0000000..ba70ae9 --- /dev/null +++ b/traefik/config/dynamic.yaml @@ -0,0 +1,69 @@ +http: + routers: + catchall: + # attached only to web entryPoint + entryPoints: + - "web" + + # catchall rule + rule: "PathPrefix(`/`)" + service: unavailable + # lowest possible priority + # evaluated when no other router is matched + priority: 1 + + to-dashboard: + rule: "Host(`subdomain.domain.com`)" + service: api@internal + + to-music: + rule: "Host(`subdomain.domain.com`)" + entrypoints: web + service: airsonic + + to-frigate: + rule: "Host(`subdomain.domain.com`)" + entrypoints: web + service: frigate + + to-portainer: + rule: "Host(`subdomain.domain.com`)" + entrypoints: web + service: portainer + + to-plex: + rule: "Host(`subdomain.domain.com`)" + entrypoints: web + service: plex + + + # middlewares: + # https-redirect: + # redirectScheme: + # scheme: https + + services: + # Service that will always answer a 503 Service Unavailable response + unavailable: + loadBalancer: + servers: {} + airsonic: + loadBalancer: + servers: + - url: http://192.168.x.x:xxx + frigate: + loadBalancer: + servers: + - url: http://192.168.x.x:xxx + portainer: + loadBalancer: + servers: + - url: http://192.168.x.x:xxx + plex: + loadBalancer: + servers: + - url: http://192.168.x.x:xxx + +providers: + docker: + exposedByDefault: false