SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
Formbricks logo

Formbricks

AGPL-3.0 Docker Ready ★ 13,315 Stars Active · 2026-11-28

Experience Management Suite built on the largest survey stack worldwide. Gracefully gather feedback at every step of the customer journey to know what your customers need. , Source Code.

Category
Polls and Events
Tech Stack / Runtime
Nodejs/Docker · TypeScript
Open-Source License
AGPL-3.0
GitHub Health
★ 13,315 · 2,632 forks
#forms#survey#typescript#nextjs#react
Official docker/docker-compose.yml

Quick Docker Compose Reference for Formbricks

x-formbricks-database: &formbricks-database
  DATABASE_URL: "postgresql://postgres:${POSTGRES_PASSWORD_URL_ENCODED:-${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}}@postgres:5432/formbricks?schema=public"

x-hub-runtime-environment: &hub-runtime-environment
  DATABASE_URL: ${HUB_DATABASE_URL:-postgresql://postgres:${POSTGRES_PASSWORD_URL_ENCODED:-${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}}@postgres:5432/formbricks?sslmode=disable}
  TAXONOMY_SERVICE_URL: ${TAXONOMY_SERVICE_URL:-}
  TAXONOMY_SERVICE_TOKEN: ${TAXONOMY_SERVICE_TOKEN:-}
  HUB_INTERNAL_API_TOKEN: ${HUB_INTERNAL_API_TOKEN:-}

x-environment: &environment
  environment: &app-environment
    ######################################################## REQUIRED ########################################################

    # The url of your Formbricks instance used in the admin panel
    # Set this to your public-facing URL, e.g., example http://localhost:3000 or https://example.com
    WEBAPP_URL:

    # The auth base URL. Should be the same as WEBAPP_URL.
    BETTER_AUTH_URL:

    # Legacy alias for BETTER_AUTH_URL, kept so an instance installed before the rename keeps working.
    # Set BETTER_AUTH_URL on a new install; this one needs no value.
    NEXTAUTH_URL:

    # Optional comma-separated extra origins trusted for sign-in, and for dashboard writes from clients that
    # send no Sec-Fetch-Site header. Browsers that send it must be same-origin with the app.
    # BETTER_AUTH_TRUSTED_ORIGINS:

    # PostgreSQL DB for Formbricks to connect to
    <<: *formbricks-database

    # Signs session cookies and every invite, verification and email-change token.
    # You can use: `openssl rand -hex 32` to generate one
    BETTER_AUTH_SECRET:

    # Legacy alias for BETTER_AUTH_SECRET. An instance installed before the rename keeps its value here
    # and nothing rewrites it, so this key stays supported indefinitely.
    NEXTAUTH_SECRET:

    # Encryption Key is used for 2FA & Single use URLs for Link Surveys
    # You can use: $(openssl rand -hex 32) to generate one
    ENCRYPTION_KEY:

    # API Secret for running cron jobs.
    # You can use: $(openssl rand -hex 32) to generate a secure one
    CRON_SECRET:

    # Redis URL for caching, rate limiting, and audit logging
    # To use external Redis/Valkey: remove the redis service below and update this URL
    REDIS_URL: redis://redis:6379

    # Formbricks Hub (port 8080): API key required. Use e.g. openssl rand -hex 32
    HUB_API_KEY: ${HUB_API_KEY:-}

    # Taxonomy service credentials are consumed by Hub/taxonomy only. Keep these
    # empty here so a shared docker/.env file cannot leak them into the web app.
    TAXONOMY_SERVICE_URL: ""
    TAXONOMY_SERVICE_TOKEN: ""
    HUB_INTERNAL_API_TOKEN: ""
    TAXONOMY_LLM_PROVIDER: ""
    TAXONOMY_LLM_MODEL: ""
    TAXONOMY_LLM_BASE_URL: ""
    TAXONOMY_LLM_API_KEY: ""
    TAXONOMY_VERTEX_PROJECT: ""
    TAXONOMY_VERTEX_LOCATION: ""
    TAXONOMY_GOOGLE_CLOUD_CREDENTIALS_JSON: ""
    TAXONOMY_BEDROCK_MODEL: ""
    TAXONOMY_MAX_RECORDS: ""
    AWS_BEARER_TOKEN_BEDROCK: ""

    # Base URL the Formbricks app uses to reach Hub. Defaults to the internal Hub service.
    HUB_API_URL: ${HUB_API_URL:-http://hub:8080}

    # Hub database URL (optional). Default: same Postgres as Formbricks. Set only if Hub uses a separate DB.
    # HUB_DATABASE_URL:

    # Cube semantic-layer API used by Formbricks analytics. Required.
    CUBEJS_API_URL: ${CUBEJS_API_URL:-http://cube:4000}
    CUBEJS_API_SECRET: ${CUBEJS_API_SECRET:-}
    CUBEJS_JWT_ISSUER: ${CUBEJS_JWT_ISSUER:-formbricks-web}
    CUBEJS_JWT_AUDIENCE: ${CUBEJS_JWT_AUDIENCE:-formbricks-cube}

    # Set the minimum log level(debug, info, warn, error, fatal)
    # LOG_LEVEL: info

# ... (see full file in official GitHub repository)

Formbricks System Requirements & Self-Hosting Guide

Deploy Formbricks (1 – 2 GB RAM) →

Recommended VPS

1 – 2 GB RAM

1 – 2 vCPU · $4 – $6/mo VPS

Deployment Method

Beginner-Friendly

Docker / Docker Compose (Recommended)

Commercial Use (AGPL-3.0)

Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes.

Maintenance Status

Active

Last commit: 2026-11-28

Frequently Asked Questions about Formbricks

Is Formbricks free to self-host for commercial use?

Formbricks is released under the AGPL-3.0 license. Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes. It has 13,315 GitHub stars and was last updated on 2026-11-28.

What VPS specifications do I need to self-host Formbricks?

Based on its Nodejs/Docker runtime and Polls and Events workload, we recommend at least 1 – 2 GB RAM and 1 – 2 vCPU (typically $4 – $6/mo VPS).

Does Formbricks support Docker deployment?

Yes — Formbricks supports Docker / Docker Compose (Recommended), making it beginner-friendly to spin up on any Linux VPS.

More Open-Source Polls and Events

View all →
★ 9.1k Docker

Form builder that allows anyone to create engaging conversational forms for surveys, questionnaires, quizzes, and polls. .

Replaces: Typeform Google Forms
AGPL-3.0 Docker
Details →
★ 4.6k Docker

Open platform to collect and prioritize feedback (alternative to UserVoice). , Source Code).

MIT Docker
Details →
★ 4k Docker

Beautiful form builder. , Source Code.

Replaces: Typeform Google Forms
AGPL-3.0 PHP/Nodejs/Docker
Details →
★ 3.8k

Feature-rich web-based polling software. Supports extensive survey logic. , Source Code.

Replaces: Typeform Google Forms
GPL-2.0 PHP
Details →
★ 1.8k Docker

Flexible tournament system to build a tournament setup, add teams, schedule matches, keep track of scores and present ranking live to the public. , Source Code.

Replaces: Google Forms
AGPL-3.0 Docker/Nodejs
Details →
★ 1k Docker

System for guided interviews and document assembly, based on Python, YAML, and Markdown. , Source Code.

MIT Docker/Python
Details →