---
title: "Self-Hosting"
description: "Learn how to self-host Formbricks."
icon: "server"
---

<span id="self-hosting-options" />
<span id="hosting-options" />
<span id="licensing-options-comparison" />

<CardGroup cols={2}>
  <Card title="Install on Kubernetes" icon="dharmachakra" href="/self-hosting/setup/kubernetes">Deploy with Helm and your platform services.</Card>
  <Card title="Upgrade an instance" icon="arrow-up-right-dots" href="/self-hosting/advanced/upgrade">Plan, deploy, verify and recover.</Card>
  <Card title="Deployment components" icon="boxes-stacked" href="/self-hosting/deployment-components">Choose services and prepare your image allowlist.</Card>
  <Card title="Configure Formbricks" icon="gear" href="/self-hosting/configuration">Connect identity, storage and integrations.</Card>
</CardGroup>

## Choose your setup

| Setup | Best for | Availability | Upgrades |
| --- | --- | --- | --- |
| [Kubernetes](/self-hosting/setup/kubernetes) | Production with high availability or an uptime SLA | Survives a node failure; you run managed PostgreSQL, Redis and object storage | Helm, Argo CD or Flux, in a maintenance window |
| [Docker Compose](/self-hosting/setup/docker) | A single server that you manage yourself, with your own proxy or storage | One server: a restart or upgrade means downtime | You update `docker-compose.yml` and run the commands |
| [One-click](/self-hosting/setup/one-click) | Small production installs on one Debian or Ubuntu server | One server: a restart or upgrade means downtime | `formbricks.sh` does most of the work |

You run and recover a self-hosted installation yourself. Enterprise features need a
[license](/self-hosting/advanced/license); support commitments are set in your contract.

## System requirements

Size the host for the whole Formbricks stack: the app, Hub API and worker, Cube, PostgreSQL,
Redis/Valkey and SpiceDB. Kubernetes also uses a SpiceDB operator for chart-managed authorization.
See [deployment components](/self-hosting/deployment-components) for the image inventory and managed-service options.

| Deployment                | CPU       | Memory    | Disk      |
| ------------------------- | --------- | --------- | --------- |
| Single server, evaluation | 2 vCPU    | 4 GB      | 20 GB SSD |
| Single server, low load   | 4 vCPU    | 8 GB      | 50 GB SSD |
| Kubernetes, production    | see below | see below | managed   |

Chart defaults request 1.9 vCPU and 2.9 GiB across those services — see `charts/formbricks/values.yaml`,
plus `charts/spicedb-operator/values.yaml` for the operator. On Kubernetes, add whatever your provider
reserves per node on top, typically around 0.5 vCPU and 1 GB. The single-server rows are derived from those
totals rather than load-tested.

<Info>
  **HTTPS Required**: Ensure your server runs with a valid HTTPS certificate.
</Info>

<Warning>
  4 GB is a floor, not a comfortable target. It leaves no headroom for a large response import, a survey
  bundle rebuild, or any of the optional AI services.
</Warning>

### Single server or Kubernetes

The single-server rows cover the [Docker](/self-hosting/setup/docker) and
[one-click](/self-hosting/setup/one-click) installs. Both run every service on one host, so a reboot or an
upgrade means downtime — usually an acceptable trade at low load, and not on its own a reason to reach for
Kubernetes. Choose [Kubernetes](/self-hosting/setup/kubernetes) when you need to survive a node failure or
carry an uptime SLA.

For Kubernetes, start at 3 nodes of at least 4 vCPU and 8 GB, autoscaling to 6, with PostgreSQL, Redis and
object storage as managed services outside the cluster. Capacity is deliberately provider-neutral: a 2 vCPU
node cannot hold the app's 1 vCPU request alongside the platform reserve, some providers exclude burstable
instance families from system node pools, and a free control-plane tier carries no uptime SLA. Most chart
workloads start with one replica; SpiceDB starts with two. Configure availability for the whole stack.
Object storage must speak the S3 API, so a service without one, such as Azure Blob Storage, needs an
[S3-compatible gateway](/self-hosting/configuration/file-uploads) in front of it. The
[Kubernetes deployment guide](/self-hosting/setup/kubernetes) has the replica, autoscaling and
managed-service settings.

### AI services are much heavier

Self-hosted AI is off by default and is a different order of magnitude: Hub embeddings alone request 4 vCPU
and 8 Gi for the foreground runtime, and 8 vCPU for the worker pool. Prefer an external endpoint unless you
need them constantly.

<Note>
  AI features are an Enterprise feature. Configure your
  [Enterprise license](/self-hosting/advanced/license) before enabling them.
</Note>

### Sizing for a specific load

**A burst of responses** is a queue question rather than a request-rate one. Each response enqueues several
`response-pipeline.process` jobs — `responseCreated`, one `responseUpdated` per progress save, then
`responseFinished` — so the count scales with how often answers are saved, and consumers default to one job
in flight per app replica. Size Redis for the deepest backlog you expect: the chart pins
`maxmemory-policy noeviction`, so a full Redis refuses writes rather than dropping jobs. See
[job runner](/self-hosting/configuration/job-runner).

**A large contact list** is storage rather than throughput. Contact attributes are one row per attribute per
contact, so 50,000 contacts with 10 attributes each is 500,000 rows before a single response is stored.

We publish no responses-per-second figure per replica: it is not load-tested, and a 40-question survey with
file uploads is not the same write as a one-question NPS. Watch pod CPU and queue depth separately through
your first campaign — they move independently.
