Deployment Guide¶
Docker Compose (Recommended for Getting Started)¶
This starts: AgentGuard app (:8000), Redis (:6379), PostgreSQL (:5432).
Production Considerations¶
- Set
APP_ENV=productionandAPP_DEBUG=false - Set a strong
JWT_SECRET-- do not use the default - Configure model API keys (
OPENAI_API_KEY,ANTHROPIC_API_KEY) - Use external Redis and PostgreSQL -- not the Docker Compose instances
- Set
CORS_ORIGINSto your frontend domains - Enable rate limiting with Redis backend (
RATE_LIMIT_BACKEND=redis)
Scaling¶
AgentGuard services are stateless. Scale horizontally by running multiple instances behind a load balancer. State is stored in:
- Redis: Rate limit counters, session cache
- PostgreSQL: Audit logs, policy storage (future)
Health Check¶
Returns {"status": "ok", "version": "0.1.0"}.
Monitoring¶
See Observability for tracing, metrics, and audit trail configuration.