Skip to Content
🎬Video-Labs
Cloud & Operations

Production Deployment

AWS EC2, Docker Compose, Route 53, Caddy, and S3 CDN configuration.

The cloud control plane powers reelporter.com (landing), app.reelporter.com (studio), docs.reelporter.com (documentation), and api.reelporter.com (sync backend).


1. Cloud Infrastructure Overview

  • Host: Single AWS EC2 ARM64 instance (t4g.small or t4g.medium).
  • Reverse Proxy: Caddy Server with automatic Let's Encrypt TLS and Zstandard compression.
  • Database: Containerized PostgreSQL 17 managed via Drizzle ORM.
  • Storage: Amazon S3 bucket with CloudFront CDN distribution for global zero-symlink media delivery.
  • Endpoints:
    • reelporter.com: Landing page & installer script (/srv/site)
    • app.reelporter.com: Next.js 16 Web Studio Dashboard (app:3000)
    • docs.reelporter.com: Modern Fumadocs Documentation Hub (docs:3200)
    • api.reelporter.com: Elysia Sync API & Job Queue (api:4000)

2. Deploying with web/deploy.sh

Deployments are automated via GitHub Actions or SSH:

cd web
./deploy.sh

What deploy.sh Does:

  1. Pulls pre-compiled images from GHCR or builds Docker container images for app (Next.js 16), docs (Fumadocs), and api (Elysia).
  2. Runs PostgreSQL migrations (bun run db:migrate).
  3. Reloads services zero-downtime with docker compose up -d.
  4. Caddy automatically provisions SSL certificates and routes traffic for docs.reelporter.com.

On this page