Quick Start with Docker
The fastest way to run LiteLLM Proxy in production.Pull the Image
Run with Docker
Docker Compose Setup
For production deployments with PostgreSQL and Prometheus.Create docker-compose.yml
docker-compose.yml
Create config.yaml
config.yaml
Create .env File
.env
Create prometheus.yml
prometheus.yml
Start the Stack
1
Start Services
2
Check Logs
3
Verify Health
4
Access UI
Open browser to
http://localhost:4000/uiDockerfile Reference
The LiteLLM Dockerfile uses a multi-stage build process:Dockerfile
Production Deployment
With Redis Cache
Add Redis to your docker-compose.yml:docker-compose.yml
config.yaml
Environment-Specific Configs
Kubernetes Deployment
litellm-deployment.yaml
Monitoring & Logs
View Logs
Access Prometheus
Openhttp://localhost:9090 to view Prometheus metrics.
Useful queries:
litellm_requests_total- Total requestslitellm_request_duration_seconds- Request latencylitellm_spend_total- Total spend
Health Checks
Maintenance
Update to Latest Version
Backup Database
Restore Database
Scale Services
Troubleshooting
Container Won’t Start
Check logs:- Database not ready: Wait for DB health check
- Port conflict: Change port mapping
- Invalid config: Validate YAML syntax