From cf5c7b817e7eb62a9ca904dbbebf1f3143514c61 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 25 Sep 2023 17:47:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(docker-compose.override.ym?= =?UTF-8?q?l):=20add=20traefik=20labels=20to=20avoid=20conflicts=20with=20?= =?UTF-8?q?backend=20service=20=F0=9F=94=A7=20chore(docker-compose.overrid?= =?UTF-8?q?e.yml):=20configure=20traefik=20labels=20for=20tests=20service?= =?UTF-8?q?=20to=20route=20traffic=20and=20set=20load=20balancer=20port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/docker-compose.override.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/docker-compose.override.yml b/deploy/docker-compose.override.yml index 01e4e2a1a..829aae883 100644 --- a/deploy/docker-compose.override.yml +++ b/deploy/docker-compose.override.yml @@ -72,6 +72,13 @@ services: command: pytest -vv healthcheck: test: "exit 0" + # override deploy labels to avoid conflicts with the backend service + labels: + - traefik.enable=true + - traefik.constraint-label-stack=${TRAEFIK_TAG?Variable not set} + - traefik.http.routers.${STACK_NAME?Variable not set}-tests-http.rule=PathPrefix(`/api/v1`) || PathPrefix(`/docs`) || PathPrefix(`/health`) + - traefik.http.services.${STACK_NAME?Variable not set}-tests.loadbalancer.server.port=7861 + networks: traefik-public: # For local dev, don't expect an external Traefik network