tr / docker-compose.gpu.yml
bipulsardar091-glitch
Deploy Kokoro TTS OpenAI Compatible API with Docker CPU
a4a0365
Raw History Blame Contribute Delete
656 Bytes
services:
kokoro-tts-gpu:
build:
context: .
dockerfile: Dockerfile.gpu
image: kokoro-tts-openai:gpu
container_name: kokoro-tts-openai-gpu
restart: unless-stopped
ports:
- "7860:7860"
environment:
- PORT=7860
- DEFAULT_VOICE=af_heart
- API_KEY= # Optional: set a Bearer token/secret to require authentication
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- kokoro-cache-gpu:/home/user/.cache/huggingface
volumes:
kokoro-cache-gpu:
name: kokoro_hf_cache_gpu