From 82b536c0e6d2659cf78f11f09896a9717e7c87e5 Mon Sep 17 00:00:00 2001 From: Christian Lempa Date: Mon, 19 Feb 2024 09:00:11 +0100 Subject: [PATCH] added example for local service --- .../traefik/config/example-externaladdress.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker-compose/traefik/config/example-externaladdress.yaml diff --git a/docker-compose/traefik/config/example-externaladdress.yaml b/docker-compose/traefik/config/example-externaladdress.yaml new file mode 100644 index 0000000..aa8f84a --- /dev/null +++ b/docker-compose/traefik/config/example-externaladdress.yaml @@ -0,0 +1,16 @@ +http: + routers: + your-local-router: + rule: "Host(`your-local-service.your-domain.com`) && PathPrefix(`/`)" + service: your-local-service + priority: 1000 + entryPoints: + - web + # (optional) Permanent Redirect to HTTPS + # - websecure + + services: + your-local-service: + loadBalancer: + servers: + - url: "http://your-local-service:port"