mirror of
https://github.com/fsecada01/Pygentic-AI.git
synced 2026-08-18 07:35:49 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user