mirror of
https://github.com/devnen/Kitten-TTS-Server.git
synced 2026-05-12 18:00:34 +00:00
29 lines
836 B
YAML
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: |