Overview
Docker is the recommended way to run LiteAgent as it provides:- Isolated environments for each agent
- Consistent dependencies across platforms
- Easy parallel execution
- Simple deployment and scaling
Docker Architecture
Quick Start
1
Clone Repository
2
Configure Environment
3
Build and Run
Docker Compose Configuration
Main Configuration File
Thedocker-compose.yml
file defines all agent services:
Agent Services
- BrowserUse
- Agent E
- Skyvern
Dockerfile Examples
Base Dockerfile Structure
Agent-Specific Dockerfiles
Dockerfile.browseruse
Dockerfile.browseruse
Dockerfile.skyvern
Dockerfile.skyvern
Volume Management
Persistent Data
LiteAgent uses volumes to persist data across container restarts:Browser Data Persistence
For agents that require browser profiles:Parallel Execution
Using Docker Compose Replicas
Multiple Agent Types
Environment Configuration
Environment Files
Create separate environment files for different configurations:Runtime Environment Variables
Override environment variables at runtime:Networking
Internal Communication
Services can communicate using service names:Port Exposure
Expose services for external access:Monitoring and Logging
Log Configuration
Configure logging for better debugging:Health Checks
Add health checks to monitor container status:Monitoring Commands
Optimization
Build Optimization
Use multi-stage builds to reduce image size:Resource Limits
Set resource limits to prevent container overconsumption:Caching
Use Docker layer caching for faster builds:Production Deployment
Production Compose File
Createdocker-compose.prod.yml
:
Troubleshooting
Build failures
Build failures
Permission issues
Permission issues
Out of space
Out of space
Next Steps
Local Setup
Alternative local development setup
Environment Variables
Configure API keys and settings
Running Tests
Start running tests with Docker