CLI
Python
app.py:Dockerfile
Build and Run
agents.yaml
agents.yaml:Docker Compose
docker-compose.yml:Multi-Agent Docker
app.py:MCP Server Docker
app.py:Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes* | OpenAI API key |
ANTHROPIC_API_KEY | No | Anthropic API key |
GROQ_API_KEY | No | Groq API key |
Health Check
Add health check to Dockerfile:Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | Change host port: -p 9000:8080 |
| Missing API key | Pass via -e OPENAI_API_KEY=... |
| Container exits | Check logs: docker logs <container> |
| Build fails | Ensure requirements.txt is correct |
Manual Docker Registry Push (Optional)
Manual Docker Registry Push (Optional)
Push to Docker Hub or private registry:
Related
- AWS - Deploy to AWS ECS/Fargate
- Google Cloud - Deploy to Cloud Run
- Agents Server - HTTP server setup

