Deployment Guide

Deploy Rampart to production with Docker or cloud platforms

Docker Compose (Recommended)

Quick Setup

# Clone repository
git clone https://github.com/arunrao/rampart-ai.git
cd project-rampart

# Generate secrets
export SECRET_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")
export JWT_SECRET_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Access application
open http://localhost:3000

Environment Variables

Required Configuration

# .env file
SECRET_KEY=<cryptographically-secure-random-value>
JWT_SECRET_KEY=<cryptographically-secure-random-value>
KEY_ENCRYPTION_SECRET=<cryptographically-secure-random-value>

# Database
DATABASE_URL=postgresql://user:pass@localhost/rampart
POSTGRES_PASSWORD=<secure-password>

# CORS (production)
CORS_ORIGINS=https://your-domain.com

# LLM Providers (optional)
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...

Cloud Deployment

AWS Deployment

Deploy to AWS with EC2 + Auto Scaling Groups using CloudFormation

cd aws
./deploy.sh

Google Cloud Run

Serverless deployment on Google Cloud Run

gcloud run deploy rampart \
  --source . \
  --region us-central1

Production Security Checklist

  • Use strong, random secrets for all keys
  • Enable HTTPS/TLS (never use HTTP in production)
  • Configure CORS with specific allowed origins
  • Set up monitoring and alerting
  • Implement database backups
  • Review and adjust rate limits