fix: use external port in MCP config for Docker deployments

The MCP config was using the internal container port (3000) instead of
the external mapped port. Added EXTERNAL_PORT env var support so clients
get the correct connection URL when running behind Docker port mapping.
This commit is contained in:
2026-01-01 09:42:32 -05:00
parent 6e0afa0bfb
commit 88a6740b42
3 changed files with 6 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ services:
- ./config.yaml:/app/config.yaml:ro
environment:
- CONFIG_PATH=/app/config.yaml
- EXTERNAL_PORT=${PORT:-3000}
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000/health')"]
interval: 30s