speaker-embeddings / docker-compose.yml
kodermax's picture
up
ca9e1ca
Raw
History Blame Contribute Delete
719 Bytes
services:
speaker-embeddings:
build:
context: .
dockerfile: Dockerfile
container_name: speaker-embeddings
ports:
- "7861:7860"
environment:
- HF_TOKEN=${HF_TOKEN:-}
- PORT=${PORT:-7860}
- PYANNOTE_DIARIZATION_MODEL=${PYANNOTE_DIARIZATION_MODEL:-pyannote/speaker-diarization-community-1}
- TORCHCODEC_DISABLE=1
- CUDA_VISIBLE_DEVICES=
volumes:
- ./cache:/home/appuser/.cache
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1:7860/health', timeout=3); sys.exit(0)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s