Skip to main content

Options

MethodBest For
Docker ComposeSingle server, quick setup
AWS ECS + RDSScalable, managed infra
GCP Cloud RunServerless, 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)

# Build
docker build -t geoark-backend ./backend
docker build -t geoark-frontend ./frontend

# Run
docker-compose -f docker-compose.prod.yml up -d

Key Steps

  1. Set DATABASE_URL to production PostgreSQL
  2. Configure Stripe (secret key, webhook)
  3. Set NEXT_PUBLIC_APP_URL and API_URL to production URLs
  4. Run migrations: npx prisma migrate deploy
  5. (Optional) Seed initial data
  6. Use HTTPS in production