Deployment

Deploy to any VPS with Docker.

Docker Compose

The included docker-compose.yml sets up:

  • Your Next.js app
  • PostgreSQL database
  • Health checks
docker compose up -d

Production Setup

  1. Clone your repo on the VPS
  2. Copy .env.example to .env and fill in values
  3. Run docker compose -f docker-compose.yml up -d
  4. Set up Nginx reverse proxy with SSL (Let's Encrypt)

Environment Variables

See .env.example for the full list. Key variables:

| Variable | Purpose | |---|---| | DATABASE_URL | PostgreSQL connection string | | BETTER_AUTH_SECRET | Auth encryption key | | STORAGE_ENDPOINT | S3-compatible endpoint | | RESEND_API_KEY | Email provider API key | | STRIPE_SECRET_KEY | Stripe API key |