Core Documentation

Open-Source Core & Docker Self-Hosting Guide

Run Formgrid core form endpoints, dashboard, PostgreSQL, Redis, and local/S3/MinIO storage on your own server with Docker Compose under the MIT license.

Formgrid publishes an MIT-licensed open-source core (github.com/allenarduino/formgrid) with Docker Compose support so developers who want full data residency or self-hosted control can run core form endpoints on their own infrastructure.

1. Self-Hosted MIT Core vs. Managed Cloud (formgrid.dev)

Feature / Component Self-Hosted MIT Core Managed Cloud (formgrid.dev)
License MIT License Hosted SaaS service
Form submission endpoints (/api/f/:slug) Included Included
Visual form builder & dashboard Included Included
Storage adapters Local disk, MinIO, AWS S3, GCS Managed cloud file storage
Database & Queue You operate PostgreSQL 15 + Redis 7 Managed multi-tenant database & workers
Email delivery Bring your own SMTP/Resend/SES keys Managed transactional delivery & quotas
Billing, hosted AI credits & SLA support Not needed / self-managed Managed Paddle billing, AI Smart Inbox & AI website credits

2. Prerequisites

  • Docker and Docker Compose
  • Node.js 18+ and pnpm 8+ (if running outside Docker or via CLI)

3. Quick Docker Compose Setup

The repository's docker/docker-compose.yml provisions five containers cleanly:

  1. db — postgres:15-alpine (mapped to host port 5433)
  2. redis — redis:7-alpine (port 6379) for background upload/email queues
  3. minio — minio/minio (ports 9000 / 9001, optional S3-compatible local storage)
  4. backend — @formgrid/api Express/TypeScript API (port 4001:4000)
  5. frontend — @formgrid/dashboard React/Vite dashboard (port 5173:5173)
git clone https://github.com/allenarduino/formgrid.git
cd formgrid
cp packages/api/.env.example packages/api/.env
# Set JWT_SECRET, database credentials, and your preferred EMAIL_PROVIDER in packages/api/.env

docker compose -f docker/docker-compose.yml up --build -d

Once healthy:

  • Dashboard: http://localhost:5173
  • API & submission endpoints: http://localhost:4001/api/f/{endpointSlug}

4. Storage & Email Configuration

Set FILE_STORAGE_TYPE in your API environment to match your environment:

  • local — stores uploads inside the mounted uploads_data volume
  • minio — uses the bundled S3-compatible MinIO container
  • s3 — uses AWS S3 (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_S3_BUCKET, AWS_REGION)
  • gcs — uses Google Cloud Storage (GCS_PROJECT_ID, GCS_BUCKET_NAME, GOOGLE_APPLICATION_CREDENTIALS)

Set EMAIL_PROVIDER (console for local testing, or resend with RESEND_API_KEY for live delivery) and FRONTEND_URL / APP_URL to match your public host domain behind your reverse proxy (Nginx, Caddy, or Traefik with TLS).