Quick Start
The fastest way to deploy LiteLLM is using Docker Compose with the official image.1
Pull the Docker Image
-stable tag (undergoes 12-hour load tests):2
Create Configuration File
Create a
config.yaml file with your model configuration:config.yaml
3
Run with Docker Compose
Use the provided Start all services:
docker-compose.yml for a complete setup with PostgreSQL and Prometheus:docker-compose.yml
4
Verify Deployment
Check health status:Access the admin UI at
http://localhost:4000/uiDocker Image Details
Multi-Stage Build
The Dockerfile uses a multi-stage build for security and size optimization:Environment Variables
Standalone Docker Run
For simple deployments without Docker Compose:Database Setup
LiteLLM uses Prisma with PostgreSQL for persistence.Database Schema
The schema includes tables for:- API Keys (
LiteLLM_VerificationToken) - Virtual keys with budgets and rate limits - Teams (
LiteLLM_TeamTable) - Team management and spend tracking - Users (
LiteLLM_UserTable) - User authentication and authorization - Models (
LiteLLM_ProxyModelTable) - Model configurations - Spend Logs (
LiteLLM_SpendLogs) - Request logs and cost tracking - Organizations (
LiteLLM_OrganizationTable) - Multi-tenant support
Migrations
The entrypoint script (docker/prod_entrypoint.sh) handles migrations:
Prometheus Configuration
Createprometheus.yml for metrics collection:
prometheus.yml
/metrics endpoint.
Volume Persistence
Health Checks
LiteLLM provides multiple health check endpoints:/health/liveliness- Basic service health/health/readiness- Ready to accept traffic/health- Combined health status
Upgrading
Troubleshooting
Container won’t start
Database connection errors
Performance issues
Next Steps
Kubernetes
Scale with Kubernetes and Helm charts
Monitoring
Set up observability and alerting
Security
Secure your deployment
High Availability
Deploy for production at scale