From 464f6b3ddb70fb2dec63b6e292c3244b7c2986b1 Mon Sep 17 00:00:00 2001 From: Francis Secada Date: Wed, 4 Feb 2026 10:27:49 -0500 Subject: [PATCH] fix: correct Traefik loadbalancer configuration for Docker network Replace external IP-based server.url with internal port-based auto-discovery. This allows Traefik to correctly communicate with the service via the Docker proxy network instead of trying to route through external IPs. Changes: - Remove: traefik.http.services.pygentic_ai.loadbalancer.server.url - Add: traefik.http.services.pygentic_ai.loadbalancer.server.port - Use INTERNAL_PORT (5051) for container communication This fixes the gateway timeout issues in Komodo deployments. Co-Authored-By: Claude Sonnet 4.5 --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 4b8391e..5d9c089 100644 --- a/compose.yaml +++ b/compose.yaml @@ -30,7 +30,7 @@ services: - traefik.http.routers.pygentic_ai.rule=Host(`pygenticai.francissecada.com`) - traefik.http.routers.pygentic_ai.entrypoints=websecure - traefik.http.routers.pygentic_ai.tls.certresolver=letsencrypt - - traefik.http.services.pygentic_ai.loadbalancer.server.url=http://${DOCKER_HOST_IP:-192.168.1.62}:${PORT:-5051} + - traefik.http.services.pygentic_ai.loadbalancer.server.port=${INTERNAL_PORT:-5051} networks: - proxy