This guide covers advanced configuration options for customizing your TTS Docker deployment. Learn how to optimize resources, configure external services, and tune performance.
All configuration is managed through environment variables in the .env file.
Your Smallest.ai license key for validation and usage reporting
Port for the API server to listen on
Internal URL for license proxy communication
Internal URL for Lightning TTS communication
Port for Lightning TTS to listen on
Redis connection URL for caching and state management
For external Redis:
With password:
GPU device ID to use (for multi-GPU systems)
For systems with multiple GPUs, you can specify which GPU to use:
For multiple GPUs per container:
Set memory limits to prevent resource exhaustion:
Control CPU allocation:
Use an external Redis instance instead of the embedded one:
Remove the Redis service from docker-compose.yml.
Use a custom Docker network:
Configure voice parameters:
Optimize for batch processing:
Control model precision for performance:
Options: fp32, fp16, int8
Cache models to avoid re-downloading:
Persist logs for debugging:
Add health checks for better monitoring:
Enhance security with read-only root filesystem:
Run containers as non-root:
Complete .env file example: