fix: keep voice-service on bridge networking to avoid port conflict

iconsulting-llm-gateway already occupies port 3008 on the host.
voice-service only has a single TCP port (no docker-proxy overhead),
so bridge networking with 13008:3008 mapping is sufficient.
Only livekit-server and voice-agent need host mode (UDP port ranges).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-01 20:23:13 -08:00
parent 68ee2516d5
commit 7fb0168dc5
1 changed files with 7 additions and 2 deletions

View File

@ -361,19 +361,22 @@ services:
condition: service_healthy condition: service_healthy
# ===== Voice Service (LiveKit token + Twilio) ===== # ===== Voice Service (LiveKit token + Twilio) =====
# NOTE: voice-service stays on bridge networking (single TCP port, no proxy overhead).
# Only livekit-server and voice-agent need host mode (UDP port ranges).
voice-service: voice-service:
build: build:
context: ../../packages/services/voice-service context: ../../packages/services/voice-service
container_name: it0-voice-service container_name: it0-voice-service
restart: unless-stopped restart: unless-stopped
network_mode: host ports:
- "13008:3008"
volumes: volumes:
- ../../data/voice-models/huggingface:/root/.cache/huggingface - ../../data/voice-models/huggingface:/root/.cache/huggingface
- ../../data/voice-models/torch-hub:/root/.cache/torch/hub - ../../data/voice-models/torch-hub:/root/.cache/torch/hub
environment: environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL} - ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL}
- AGENT_SERVICE_URL=http://127.0.0.1:13002 - AGENT_SERVICE_URL=http://agent-service:3002
- WHISPER_MODEL=${WHISPER_MODEL:-base} - WHISPER_MODEL=${WHISPER_MODEL:-base}
- KOKORO_MODEL=${KOKORO_MODEL:-kokoro-82m} - KOKORO_MODEL=${KOKORO_MODEL:-kokoro-82m}
- KOKORO_VOICE=${KOKORO_VOICE:-zf_xiaoxiao} - KOKORO_VOICE=${KOKORO_VOICE:-zf_xiaoxiao}
@ -396,6 +399,8 @@ services:
start_period: 120s start_period: 120s
depends_on: depends_on:
- agent-service - agent-service
networks:
- it0-network
# ===== Frontend ===== # ===== Frontend =====
web-admin: web-admin: