Rebuild & Deploy / rebuild (push) Successful in 1m0s
The Unraid deployment's /media/api requests were answered by an Apache/YOURLS stack squatting on 8092, surfacing as UI 503s; the CI healthcheck (curl without -f) counted that 503 as healthy, so run #15 deployed green against a broken media server. - media server port 8092 -> 8093 everywhere (server, MCP, agent, nginx, compose, CI, .env.example, docs, tests). - healthchecks use curl -f in compose and rebuild.yml so HTTP error statuses fail deployment. - tests default to the Unraid deployment (VOICE_WEB_URL= https://192.168.86.2:9178); token goes through nginx (loopback :8091 is unreachable off-host); bind-mount-coupled tests skip on remote targets. AGENTS.md documents the convention and both failure modes.
36 lines
1.5 KiB
YAML
36 lines
1.5 KiB
YAML
services:
|
|
voice:
|
|
build: .
|
|
container_name: voice
|
|
network_mode: host
|
|
environment:
|
|
LIVEKIT_URL: "http://localhost:7880"
|
|
LIVEKIT_API_KEY: "${LIVEKIT_API_KEY:-devkey}"
|
|
LIVEKIT_API_SECRET: "${LIVEKIT_API_SECRET:-hopevoice-devsecret-2026-lan-only}"
|
|
AZURE_SPEECH_KEY: "${AZURE_SPEECH_KEY:?Set AZURE_SPEECH_KEY in .env}"
|
|
AZURE_SPEECH_REGION: "${AZURE_SPEECH_REGION:-eastus}"
|
|
AZURE_TTS_VOICE: "${AZURE_TTS_VOICE:-en-US-Ava:DragonHDOmniLatestNeural}"
|
|
LLM_BASE_URL: "${LLM_BASE_URL:-http://192.168.86.2:3005/api}"
|
|
LLM_MODEL: "${LLM_MODEL:-qwen2.5-vl-3b}"
|
|
LLM_API_KEY: "${LLM_API_KEY:-not-needed}"
|
|
WEB_MCP_ENABLED: "${WEB_MCP_ENABLED:-true}"
|
|
FIRECRAWL_BASE: "${FIRECRAWL_BASE:-http://192.168.86.2:3002}"
|
|
WEB_PORT: "${WEB_PORT:-9178}"
|
|
VOICE_USERS_FILE: "/etc/hope/users.json"
|
|
VOICE_DEFAULT_USER: "${VOICE_DEFAULT_USER:-shane}"
|
|
MEDIA_DIR: "/data/media"
|
|
MEDIA_SERVER_PORT: "${MEDIA_SERVER_PORT:-8093}"
|
|
YTDLP_COOKIES: "${YTDLP_COOKIES:-/data/media/cookies.txt}"
|
|
volumes:
|
|
- ./livekit.yaml:/etc/livekit.yaml:ro
|
|
- ./certs:/etc/voice/certs
|
|
- ./skills:/skills
|
|
- ./media:/data/media
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -sfk https://localhost:$${WEB_PORT:-9178}/ -o /dev/null && curl -sf http://localhost:7880/ -o /dev/null && curl -sf http://localhost:$${MEDIA_SERVER_PORT:-8093}/media/api/healthz -o /dev/null"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|
|
restart: unless-stopped
|