This guide covers advanced configuration options for customizing your 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
Download URL for the Lightning ASR model (provided by Smallest.ai)
Port for the API server to listen on
Internal URL for license proxy communication
Internal URL for Lightning ASR communication
Port for Lightning ASR 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 for containers:
Reserve CPU cores for each service:
To use an external Redis instance instead of the embedded one:
Enable data persistence for Redis:
Add password protection:
Update .env:
Run multiple Lightning ASR containers for higher throughput:
This configuration requires multiple GPUs in your system and will distribute load across workers.
Configure custom network with specific subnet:
Bind to specific host IP:
For maximum performance (loses network isolation):
Host network mode bypasses Docker networking and directly uses host network stack. Use only if necessary.
Use JSON file logging with rotation:
Send logs to syslog:
Forward logs to external logging service:
Avoid re-downloading models on container restart:
Use a specific host directory:
Adjust health check timing:
Add health check for API server:
Add user specification:
Increase security with read-only root filesystem:
Prevent resource exhaustion:
Here’s a complete production-ready configuration: