Deploy GrowthBook (/w proxy)

GrowthBook is an open-source platform for feature flagging and A/B testing.

Deploy GrowthBook (/w proxy)

GrowthBook

growthbook/growthbook

Just deployed

/usr/local/src/app/packages/back-end/uploads

GB Proxy

growthbook/proxy

Just deployed

MongoDB

mongo:7

Just deployed

/data/db

Redis

bitnami/redis:7.2.5

Just deployed

/bitnami

Deploy and Host GrowthBook with Proxy

GrowthBook is an open-source platform for feature flagging and A/B testing built for data teams, engineers, and product managers. It's great whether you're looking to just analyze experiment results or looking to make it easier to deploy code.

About Hosting GrowthBook

GrowthBook consists of a NextJS front-end, an ExpressJS API, and a Python stats engine. You will have to configure port forwarding, and set the required variables noted below.

Common Use Cases

Read about how GrowthBook works here.

  1. Full Experimentation Platform In this use case, companies use Feature Flags and our SDKs to run experiments in their applications. Then they use our Experiment Analysis to look at the results and decide on a winner.
    This is best for companies that are either just starting with experimentation or want to completely switch away from their current way of doing things.

  2. Feature Flags Only In this use case, companies don't run experiments at all and just use GrowthBook feature flags within their engineering team.
    This is best for companies that don't have enough traffic to run full experiments, but still want all of the benefits that feature flags provide. It's also good for companies that know they will want to run experiments in the future and want to start instrumenting their applications today to get ready.

  3. Experiment Analysis Only In this use case, companies are already running experiments and analyzing results usually with either a home-built reporting system or by manually creating Jupyter notebooks. They use GrowthBook to automate and improve the analysis process to save time and make better decisions.
    This is best for companies that already have a robust process for running experiments and just need a little help analyzing results at scale.

Dependencies for GrowthBook with Proxy Hosting

  • MongoDB for storing feature flags and configurations.
  • Redis for caching and real-time proxy updates when horizontally scaling.

Deployment Dependencies

Implementation Details

A custom domain is required to deploy GrowthBook, as 2 ports are exposed from 1 service.

The proxy service does not require any additional configuration, and can be scaled to any amount of instances in any amount of regions. Enabling serverless is recommended.

Required variables:

  • APP_ORIGIN: This should be the public URL of port 3000. (e.g. https://growthbook.up.railway.app)
  • API_HOST: This should be the public URL of port 3100. (e.g. https://growthbook-api.up.railway.app)

Why Deploy GrowthBook on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying GrowthBook on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

View Template
Litlyx
Modern, developer-friendly, cookiefree analytics tool. Alternative to Umami

View Template
Superset
An open-source modern data exploration and visualization platform.