Overview
The Conformly.ai backend can be deployed using Docker Compose, which includes all necessary services: FastAPI backend, Celery workers, Redis, and optional monitoring tools.Architecture
Quick Start
1. Prerequisites
- Docker and Docker Compose installed
.envfile configured inconformly-backend/directory
2. Environment Setup
3. Build and Start Services
4. Verify Deployment
Services
Backend API
- Port: 8000
- Health Check:
http://localhost:8000/health - API Docs:
http://localhost:8000/docs
Redis
- Port: 6379
- Purpose: Message broker and result backend for Celery
Celery Worker
- Purpose: Execute background analysis tasks
- Scaling: Run multiple workers:
docker compose up -d --scale celery-worker=3
Celery Beat
- Purpose: Schedule periodic tasks (cleanup, maintenance)
Flower (Optional)
Monitor Celery tasks:http://localhost:5555
Production Deployment
For production:- Use environment-specific
.envfiles - Configure proper secrets management
- Set up reverse proxy (nginx)
- Enable SSL/TLS
- Configure database connection pooling
- Set up monitoring and logging
- Use Docker secrets for sensitive data
Production Deployment Guide
Learn about production deployment best practices