fix(docker): update gateway port mapping from 8001 to 8101 for direct access

This commit is contained in:
Titan 2026-04-24 18:02:53 +08:00
parent 1ffe32fe00
commit 81bd9b3d74
2 changed files with 4 additions and 4 deletions

View File

@ -123,8 +123,8 @@ services:
command: sh -c "cd backend && uv sync && PYTHONPATH=. uv run uvicorn app.gateway.app:app --host 0.0.0.0 --port 8001 --reload --reload-include='*.yaml .env' > /app/logs/gateway.log 2>&1" command: sh -c "cd backend && uv sync && PYTHONPATH=. uv run uvicorn app.gateway.app:app --host 0.0.0.0 --port 8001 --reload --reload-include='*.yaml .env' > /app/logs/gateway.log 2>&1"
ports: ports:
# Expose to host so DooD-started sandbox containers can reach the gateway # Expose to host so DooD-started sandbox containers can reach the gateway
# via host.docker.internal:8001 # via host.docker.internal:8101
- "8001:8001" - "8101:8001"
volumes: volumes:
- ../backend/:/app/backend/ - ../backend/:/app/backend/
# Preserve the .venv built during Docker image build — mounting the full backend/ # Preserve the .venv built during Docker image build — mounting the full backend/

View File

@ -71,8 +71,8 @@ services:
command: sh -c "cd backend && PYTHONPATH=. uv run uvicorn app.gateway.app:app --host 0.0.0.0 --port 8001 --workers 2" command: sh -c "cd backend && PYTHONPATH=. uv run uvicorn app.gateway.app:app --host 0.0.0.0 --port 8001 --workers 2"
ports: ports:
# Expose gateway port for direct access (e.g. for API clients or testing tools like Postman). # Expose gateway port for direct access (e.g. for API clients or testing tools like Postman).
# via host.docker.internal:8001 # via host.docker.internal:8101
- "8001:8001" - "8101:8001"
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro