Self-Hosted GrowthBook

Run GrowthBook behind your firewall.

Give your team private access to feature flags and experiments. You decide who can reach the admin app, which data it can read, and where targeting rules run.

Graph showing experiments increasing while cost per experiment decreases over time, represented by two intersecting curved lines.
This is some text inside of a div block.

Deployment architecture

Limit access at each layer

Restrict admin access

Put the dashboard behind your corporate VPN. If a public app needs flag definitions, the GrowthBook Proxy can serve them while the main instance stays on a private subnet.

Scope warehouse access

For standard experiment analysis, give GrowthBook a read-only account for the tables or views it needs. Your warehouse computes aggregate statistics and returns them to your instance.

Keep targeting rules private

Evaluate sensitive rules with a server-side SDK. For example, your server can use an account’s contract tier to decide which feature to show. The browser receives the result.

Start with a hardened container

GrowthBook ships a minimal Docker image. You configure HTTPS, manage the keys that protect sessions and warehouse credentials, and choose when to apply updates.

growthbook/growthbook

Runtime user
Non-root (UID 1000)
Shell
None
Package manager
None

Control outbound connections

A private instance can still send requests out. Set WEBHOOK_PROXY to route event webhooks through your egress proxy. Configure the proxy to block private addresses.

Example webhook route

  1. GrowthBookSends an event webhook.
  2. Your egress proxyChecks the destination against your network policy.
  3. Allowed endpointReceives the request if the proxy permits it.

Usage telemetry

By default, GrowthBook collects a hashed organization or user identifier, an IP address, and a user agent. To turn off usage telemetry for your instance, set DISABLE_TELEMETRY=true.

Limit what API credentials can change

Give reporting jobs and release tools separate credentials. Start by asking what each integration actually needs to do.

TaskCredential and permissions
Build a reportRead-only API keyRead flag definitions or experiment results.
Update a flagPersonal access tokenMake changes within the token owner’s GrowthBook permissions.

Self-hosting security resources

House beside a database on a purple background

Secure a production deployment

Configure HTTPS, set signing and encryption keys, and restrict access to your GrowthBook instance and warehouse.

Read the production guide
Terminal prompt on a teal background

Keep flag rules off the client

See which attributes a client sends to your evaluation endpoint, what it gets back, and how that affects caching and latency.

Explore remote evaluation
Illustration of a malicious script reaching a website

Audit third-party testing scripts

GrowthBook CTO Jeremy Dorn examines the Optimizely incident and explains how to review third-party scripts, content security policies, and API keys.

Read the security review

Self-host GrowthBook on your infrastructure

Get the official Docker image and setup instructions for your deployment.

Simplified white illustration of a right angle ruler or carpenter's square tool.White checkmark symbol with a scattered pixelated effect around its edges on a transparent background.