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 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 10:27:49 -05:00
co-authored by Claude Sonnet 4.5
parent 9f9f611f9e
commit 464f6b3ddb
+1 -1
View File
@@ -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