Deploy Formbricks + Postgres
Formbricks surveys with Postgres, Valkey, persistent uploads, secrets.
valkey
Just deployed
/data
postgres
Just deployed
/var/lib/postgresql/data
formbricks
Just deployed
/home/nextjs/apps/web/saml-connection
Deploy and Host Formbricks + Postgres on Railway
Self-host Formbricks surveys and experience management on Railway with Postgres, Valkey, generated secrets, persistent uploads, and private networking.
About Hosting Formbricks + Postgres on Railway
formbricks: public Formbricks web servicepostgres: private Postgres databasevalkey: private cache service for rate limits, caching, and audit logging- Persistent upload storage
- Generated auth, encryption, cron, database, and cache secrets
- One-domain default setup for fast first launch
Why Deploy Formbricks + Postgres on Railway
The published template deploy test created formbricks, postgres, and valkey; all services reached SUCCESS; the public app returned HTTP 200; and /health returned HTTP 200 after the migration window.
The template keeps first launch simple: no bundled SMTP, OAuth, S3, or enterprise license assumptions. Teams can add those after the app is healthy.
Common Use Cases
- Product feedback portals
- In-app surveys
- Link surveys and customer research
- NPS, CSAT, and onboarding feedback
- Internal evaluation of self-hosted Formbricks
Dependencies for Formbricks + Postgres Hosting
Formbricks depends on Postgres for durable application data, Valkey for cache/rate-limit/audit behavior, generated auth/encryption secrets, and a stable public web URL.
Deployment Dependencies
DATABASE_URL: private Postgres connection stringREDIS_URL: private Valkey connection stringENCRYPTION_KEY: generated encryption secretNEXTAUTH_SECRET: generated auth secretWEBAPP_URL: Railway public Formbricks URL
After Deploy
- Open the Formbricks public URL.
- Create the first account.
- Add SMTP before enabling email verification or password reset flows.
- Keep
PUBLIC_URLunset unless you intentionally want a two-domain admin/survey setup.
Support Checklist
If a deploy fails, include formbricks, postgres, and valkey deployment IDs, whether /health is still migrating or failing, and log lines mentioning Prisma, database, or cache startup.
Template Content
valkey
valkey/valkey:8-alpinepostgres
pgvector/pgvector:pg17formbricks
ghcr.io/formbricks/formbricks:latest