Aller au contenu principal

Deployment Overview

Complete deployment guides for Synap Backend


Deployment Options

Self-Hosted Data Pod

  • Full control over your data
  • Open source
  • Requires infrastructure management

See Self-Hosted Deployment

Docker Compose

  • One-command deployment
  • Includes PostgreSQL and MinIO
  • Perfect for development

See Docker Deployment

Production Cloud

  • Managed infrastructure
  • Scalable
  • High availability

See Production Deployment


Prerequisites

  • ✅ PostgreSQL with TimescaleDB extension
  • ✅ Cloudflare R2 or MinIO for storage
  • ✅ API keys (Anthropic, OpenAI)
  • ✅ Inngest (cloud or self-hosted)
  • ✅ Ory Kratos and Hydra (for authentication)

Quick Start

Docker Compose (Development)

# 1. Create .env
cp env.local.example .env
# Add your API keys

# 2. Start services
docker compose up -d

# 3. Initialize database
pnpm --filter database db:init

# 4. Start backend
pnpm dev

Checklist

Configuration

  • Environment variables configured
  • Database initialized
  • Migrations applied
  • Storage configured

Security

  • Secrets secured (not in code)
  • CORS configured
  • Rate limiting enabled
  • Auth configured

Monitoring

  • Health checks configured
  • Logs centralized
  • Alerts configured

Next: See specific deployment guides for detailed instructions.