From a8da8133741669660017ce4b29c519cb136b8f1c Mon Sep 17 00:00:00 2001 From: Stavros Date: Sun, 9 Feb 2025 13:35:23 +0200 Subject: [PATCH] fix: the traefik forward label should be in the tinyauth container --- docker-compose.dev.yml | 3 +-- docker-compose.example.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index fb3cc44..12e59f9 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -7,8 +7,6 @@ services: - 80:80 volumes: - /var/run/docker.sock:/var/run/docker.sock - labels: - traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth nginx: container_name: nginx @@ -32,3 +30,4 @@ services: traefik.enable: true traefik.http.routers.tinyauth.rule: Host(`tinyauth.dev.local`) traefik.http.services.tinyauth.loadbalancer.server.port: 3000 + traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth/traefik diff --git a/docker-compose.example.yml b/docker-compose.example.yml index d9a7ddb..c19ae98 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -7,8 +7,6 @@ services: - 80:80 volumes: - /var/run/docker.sock:/var/run/docker.sock - labels: - traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth nginx: container_name: nginx @@ -30,3 +28,4 @@ services: traefik.enable: true traefik.http.routers.tinyauth.rule: Host(`tinyauth.example.com`) traefik.http.services.tinyauth.loadbalancer.server.port: 3000 + traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth/traefik