Skip to main content

Overview

This guide walks you through deploying Smallest Self-Host using Docker Compose. You’ll have a fully functional speech-to-text service running in under 15 minutes.
Ensure you’ve completed all prerequisites before starting this guide.

Step 1: Create Project Directory

Create a directory for your deployment:

Step 2: Login to Container Registry

Authenticate with the Smallest container registry using credentials provided by support:
Enter your username and password when prompted.
Save your credentials securely. You’ll need them if you restart or redeploy the containers.

Step 3: Create Environment File

Create a .env file with your license key:
Replace your-license-key-here with the actual license key provided by Smallest.ai.
Never commit your .env file to version control. Add it to .gitignore if using git.

Step 4: Create Docker Compose File

Best for: Fast inference, real-time applicationsCreate a docker-compose.yml file:
docker-compose.yml

Step 5: Additional Configuration for Lightning ASR

Add the model URL to your .env file (required for Lightning ASR):
The MODEL_URL is provided by Smallest.ai support.

Step 6: Start Services

Launch all services with Docker Compose:

Step 7: Monitor Startup

Watch the logs to monitor startup progress:
Look for these success indicators:
1

Redis Ready

2

License Proxy Ready

3

Model Service Ready

Lightning ASR:
4

API Server Ready

Common Startup Issues

Error: could not select device driver "nvidia"Solution:
If this fails, reinstall NVIDIA Container Toolkit.
Error: License validation failedSolution:
  • Verify LICENSE_KEY in .env is correct
  • Check internet connectivity
  • Ensure firewall allows HTTPS to api.smallest.ai
Error: Failed to download modelSolution:
  • Verify MODEL_URL in .env is correct
  • Check disk space: df -h
  • Check internet connectivity
Error: port is already allocatedSolution: Check what’s using the port:
Either stop the conflicting service or change the port in docker-compose.yml

Managing Your Deployment

Stop Services

Restart Services

View Logs

Examples:

Update Images

Pull latest images and restart:

Remove Deployment

Stop and remove all containers:
Remove containers and volumes (including downloaded models):
Using -v flag will delete all data including downloaded models. They will need to be re-downloaded on next startup.

What’s Next?

STT Configuration

Customize your deployment with advanced configuration options

STT Services Overview

Learn about each service component in detail

STT Troubleshooting

Debug common issues and optimize performance

API Reference

Integrate with your applications using the API