Formbricks 6.2 Surveys (Postgres, SpiceDB, Hub, Cube, S3)

Formbricks is an open-source survey and experience-management platform for link, website and in-app surveys. This template runs Formbricks 6.2.2 with its full self-hosting stack: SpiceDB authorization, the Formbricks Hub API and worker, Cube analytics, PostgreSQL 18, Redis 8.2 and a Railway Bucket for uploads. The first admin is created from your variables.

What you get

  • The official Formbricks 6.2.2 image pinned by digest, running migrations, first-admin creation and SpiceDB schema preparation on start
  • SpiceDB 1.57.0 with its own database on the project Postgres, reached over private gRPC with a preshared key
  • Formbricks Hub 0.14.3 with a separate Hub Worker, and Formbricks Cube 1.8.8-3 for dashboard queries
  • PostgreSQL 18 and Redis 8.2 on the private network, each with a volume
  • A Railway Bucket for uploads, with the CORS rule for browser uploads set on every start
  • No public sign-up and no claimable setup wizard: the admin exists before the site answers requests

Good for

  • Link surveys and forms shared by URL or QR code
  • Website and in-app surveys triggered by user actions through the Formbricks SDK
  • NPS, CSAT and product-market-fit tracking with dashboards
  • Collecting feedback from several sources in one place

Cost

Measured idle on Railway: about 1.13 GB of RAM in total (Formbricks 0.50 to 0.72 GB, Postgres 0.14 to 0.19 GB, Cube 0.09 GB, SpiceDB, Redis, Hub and Hub Worker 0.05 GB or less each) and near-zero idle CPU. The template documentation puts that at about $12 a month idle plus Bucket storage, and the author estimates $15 to $25 a month with real traffic.

Services in this template

  • Formbricks · from baranberkay96/formbricks-railway
  • Hub · image ghcr.io/formbricks/hub:0.14.3@sha256:63b85da9a0eb4346dd9350cd2bc82e9fe00b195756ad9a4bd50195ba874d10bc
  • Hub Worker · image ghcr.io/formbricks/hub:0.14.3@sha256:63b85da9a0eb4346dd9350cd2bc82e9fe00b195756ad9a4bd50195ba874d10bc
  • SpiceDB · from baranberkay96/formbricks-railway
  • Postgres · image ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:4fc833b43d2aaf6ecc9b18615f5533602b723a32d0e2efe2dae8ca0f7217c863
  • Redis · image redis:8.2.11@sha256:b0b01167ff47bc3868e56a967895a26be4230891a1f42a78ab61cdd227accc8d
  • Cube · from baranberkay96/formbricks-railway

Questions people ask

How do I log in?

Enter your e-mail in ADMIN_EMAIL when you deploy. After the first deploy (migrations take a few minutes), open the Formbricks URL and sign in with that e-mail and the generated ADMIN_PASSWORD from the Formbricks service's Variables tab, then create your organization. Without SMTP the template turns off e-mail verification and password reset, so store the password safely. Add teammates under Organization settings > Members.

Is my data persistent?

Yes. Formbricks, Hub and SpiceDB data live in Postgres on a volume (SpiceDB in its own database), Redis has a volume, and uploaded images and files go to the private Railway Bucket. The web app, Hub, Hub Worker, SpiceDB and Cube keep no local state. The template has no scheduled backup, so back up Postgres yourself, at least before upgrades.

What drives the cost?

Mostly the Formbricks web service, which used 0.5 to 0.72 GB of RAM idle when measured on Railway; all seven services together used about 1.13 GB, with near-zero idle CPU. Bucket storage grows with uploads. The web service can pass 1 GB under load (upstream sizes it for 2 GB), so Hobby is recommended over Trial.

How do I upgrade?

Read the Formbricks release notes, back up Postgres, move the images to the matching release and redeploy; migrations run on start. Formbricks and Cube are pinned in services/*/Dockerfile, Hub in the template and SpiceDB in services/spicedb/Dockerfile. Hub and Hub Worker must use the same image.

What licences apply?

The NOTICE lists Formbricks' core as AGPL-3.0, its SDK packages as MIT and the code in apps/web/modules/ee under the Formbricks Enterprise license; those features need a license key and are not unlocked by this template. Hub, the Cube image and SpiceDB are Apache-2.0. AGPL has conditions if you modify the code and offer it to others. This is a community template, not affiliated with or endorsed by Formbricks GmbH or Railway.

Full template README

Deploy and Host Formbricks with Railway

Formbricks is an open-source survey and experience-management platform: link surveys, website and in-app surveys, NPS and feedback analysis. This template runs Formbricks 6.2 with its complete self-hosting stack: the web app, SpiceDB authorization, the Formbricks Hub API and worker, Cube analytics, PostgreSQL 18, Redis and a Railway Bucket for uploads.

About Hosting Formbricks

Formbricks 6 is more than one container. The Next.js web app keeps its data in PostgreSQL, uses Redis for caching, rate limits and job queues, and asks SpiceDB for every authorization decision. The Hub service stores and processes feedback records (webhooks, enrichments) with a separate worker, and Cube answers the analytics dashboards. All of them share one PostgreSQL server; SpiceDB uses its own database there.

On the first start this template waits for PostgreSQL, applies the migrations of every component, creates the first administrator from your variables before the site answers requests, sets the Bucket's CORS rule for browser uploads and prepares the SpiceDB schema.

Common Use Cases

  • Link surveys and forms you share by URL or QR code
  • Website and in-app surveys triggered by user actions through the Formbricks SDK
  • NPS, CSAT and product-market-fit tracking with dashboards
  • Collecting and analysing feedback from several sources in one place
  • A privacy-friendly alternative to Typeform, SurveyMonkey or Qualtrics on your own infrastructure

Dependencies for Formbricks Hosting

  • Formbricks 6.2.2 (official image, pinned by digest)
  • SpiceDB 1.57 (AuthZed), Formbricks Hub 0.14.3, Formbricks Cube 1.8.8
  • PostgreSQL 18 with pgvector (Railway's postgres-ssl image)
  • Redis 8.2
  • A Railway Bucket for uploaded files

Deployment Dependencies

Implementation Details

Service What it does Public
Formbricks Web app and APIs; migrations, first admin, Bucket CORS and SpiceDB schema on start yes
SpiceDB Authorization graph (gRPC, preshared key) no
Hub Feedback-record API; runs its own migrations no
Hub Worker Webhook delivery and enrichment jobs no
Cube Analytics queries for dashboards no
Postgres Formbricks, Hub and SpiceDB data no
Redis Cache, rate limits, job queues no
Bucket Uploaded images and files (private) no

First login

  1. Enter your e-mail in ADMIN_EMAIL when you deploy.
  2. Wait for the first deploy (migrations take a few minutes), then open the Formbricks URL.
  3. Log in with ADMIN_EMAIL and the generated ADMIN_PASSWORD from the Formbricks service's Variables tab, then create your organization.

The instance is closed: there is no public sign-up, and nobody can claim the setup wizard before you. Add teammates under Organization settings > Members.

E-mail. Formbricks sends invitations, password resets and notifications over SMTP, which Railway allows only on the Pro plan. Without SMTP the template disables e-mail verification and password reset, so logins work; set MAIL_FROM and SMTP_* on Pro to enable e-mail.

Custom domain. Add it to the Formbricks service and set WEBAPP_URL to https://{your-domain}, then redeploy.

Scaling and versions. Images are pinned by digest (Formbricks and Cube in services/*/Dockerfile, Hub in the template, SpiceDB in services/spicedb/Dockerfile). To upgrade, follow the Formbricks release notes, back up Postgres, move the images to the matching release and redeploy; migrations run on start. Hub and Hub Worker must use the same image.

Resources. Measured idle on Railway: Formbricks 0.5–0.72 GB, Postgres 0.19 GB, Cube 0.09 GB, SpiceDB, Redis, Hub and Hub Worker under 0.05 GB each; about 1.1 GB in total, roughly $12–25 per month. The web service can pass Trial's 1 GB limit under load, so Hobby is recommended.

License. Formbricks' core is AGPL-3.0; code in apps/web/modules/ee is under the Formbricks Enterprise license and its features need a license key (the free community features work without one). SpiceDB and Hub are Apache-2.0. This is a community template; it is not affiliated with Formbricks GmbH.

Why Deploy Formbricks on Railway?

Railway runs the whole Formbricks 6 stack, its database, Redis and file storage in one project with private networking and HTTPS. You get the production layout upstream ships for Docker in one click, with the first admin created for you, and you can add a domain or scale from the dashboard.

Guides for this template

View Formbricks 6.2 Surveys (Postgres, SpiceDB, Hub, Cube, S3) on railway.com

Similar templates

TemplateCategoryDeploymentsDeploys
Umami
An open source, privacy-focused alternative to Google Analytics
Analytics4,242
Metabase
Fast analytics and integrated tooling for companies exploring their data
Analytics2,643
Plausible Analytics
An easy to use, privacy-friendly, open-source Google Analytics alternative
Analytics915
Formbricks
An open source surveys & experience management solution
Analytics692
SearXNG | Open Source Search API for AI Agents
Self-Host SearXNG. Open source, AI-ready search, 70+ engines combined
Analytics141
PostHog Product Analytics SuiteTracklayer
Self-hosted product analytics, session replay, feature flags and A/B tests.
Analytics15