Files
Kitten-TTS-Server/docker-compose-cpu.yml
2025-08-06 01:52:13 +02:00

29 lines
836 B
YAML

version: '3.8'
services:
kitten-tts-server:
build:
context: .
dockerfile: Dockerfile
args:
# This build argument ensures only CPU dependencies are installed
- RUNTIME=cpu
ports:
- "${PORT:-8005}:8005"
volumes:
# Mount local config file for persistence
- ./config.yaml:/app/config.yaml
# Mount local directories for persistent app data
- ./outputs:/app/outputs
- ./logs:/app/logs
# Named volume for Hugging Face model cache to persist across container rebuilds
- hf_cache:/app/hf_cache
restart: unless-stopped
environment:
# Enable faster Hugging Face downloads inside the container
- HF_HUB_ENABLE_HF_TRANSFER=1
# Define the named volume for the Hugging Face cache
volumes:
hf_cache: