Options
| Method | Best For |
|---|---|
| Docker Compose | Single server, quick setup |
| AWS ECS + RDS | Scalable, managed infra |
| GCP Cloud Run | Serverless, auto-scaling |
| VPS (Railway, Render, etc.) | Simple, affordable |
Prerequisites
- PostgreSQL database
- Domain (optional, for HTTPS)
- API keys: AI providers, Stripe
- Environment variables (see Environment Variables)
Docker Compose (Production)
Key Steps
- Set
DATABASE_URLto production PostgreSQL - Configure Stripe (secret key, webhook)
- Set
NEXT_PUBLIC_APP_URLandAPI_URLto production URLs - Run migrations:
npx prisma migrate deploy - (Optional) Seed initial data
- Use HTTPS in production