---
title: "Deploy Typebot 3.19 Chatbot Builder (Postgres, Redis, S3 Files)"
description: "Visual chatbot builder: builder, bot viewer, file storage, login codes."
category: "AI/ML"
url: https://railway.com/deploy/typebot-319-chatbot-builder-postgres-red
---

# Deploy Typebot 3.19 Chatbot Builder (Postgres, Redis, S3 Files)

Visual chatbot builder: builder, bot viewer, file storage, login codes.

**[Deploy Typebot 3.19 Chatbot Builder (Postgres, Redis, S3 Files) on Railway](https://railway.com/template/typebot-319-chatbot-builder-postgres-red)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/typebot-319-chatbot-builder-postgres-red/manifest.json

- **Creator:** Tracklayer
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:4fc833b43d2aaf6ecc9b18615f5533602b723a32d0e2efe2dae8ca0f7217c863

### Files https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/seaweedfs.svg

- **Source:** baranberkay96/typebot-railway
- **Health check:** /healthz
- **Public domain:** Yes

### Viewer https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/typebot.svg

- **Source:** baranberkay96/typebot-railway
- **Health check:** /api/healthz
- **Public domain:** Yes

### Builder https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/typebot.svg

- **Source:** baranberkay96/typebot-railway
- **Health check:** /api/auth/providers
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.11@sha256:b0b01167ff47bc3868e56a967895a26be4230891a1f42a78ab61cdd227accc8d
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# Deploy and Host Typebot with Railway

Typebot is a visual chatbot builder: drag blocks onto a canvas to build conversational forms, lead-capture bots and AI assistants, then embed them on a website or connect them to WhatsApp. This template runs Typebot 3.19 with its builder, bot viewer, PostgreSQL 18, Redis and S3-compatible file storage.

## About Hosting Typebot

Typebot has two web apps. The builder is where you design bots, view results and manage workspaces; the viewer serves published bots to visitors. Both share PostgreSQL. Redis rate-limits sign-in requests and handles WhatsApp media. Uploaded images, avatars and visitors' files are stored in an S3 bucket.

Typebot signs people in with a 6-digit code sent by e-mail, and Railway allows outbound SMTP only on the Pro plan. This template adds a small loopback mail relay to the builder: with a free Resend API key the code is e-mailed over HTTPS; without one the code is printed in the Builder's deploy logs, so you can always sign in. Real SMTP and GitHub or Google OAuth remain available.

## Common Use Cases

- Lead capture and qualification bots embedded on a website
- Conversational forms and quizzes that write results to Google Sheets or webhooks
- Customer-support and FAQ assistants backed by OpenAI or other AI blocks
- WhatsApp bots through the official Cloud API
- Internal intake flows that hand data to n8n, Make or Zapier

## Dependencies for Typebot Hosting

- Typebot 3.19.1 builder and viewer images (official, pinned by digest)
- PostgreSQL 18 (Railway's `postgres-ssl` image)
- Redis 8.2
- SeaweedFS 4.53 as the S3 file store
- Optional: a Resend API key, or SMTP on Railway Pro, for e-mail delivery

### Deployment Dependencies

- Typebot source: https://github.com/baptisteArno/typebot.io
- Self-hosting guide: https://docs.typebot.io/self-hosting/deploy/docker
- Configuration reference: https://docs.typebot.io/self-hosting/configuration
- Resend (free tier, HTTPS e-mail API): https://resend.com
- SeaweedFS: https://github.com/seaweedfs/seaweedfs

### Implementation Details

| Service | What it does | Public |
|---|---|---|
| Builder | Bot editor, results, workspaces; runs database migrations; loopback mail relay | yes |
| Viewer | Serves published bots and the chat API | yes |
| Files | SeaweedFS S3 gateway: uploads on a volume, anonymous read of `public/` only | yes (file URLs) |
| Postgres | All data | no |
| Redis | Sign-in rate limiting, WhatsApp media | no |

**First login**

1. Enter your e-mail in `ADMIN_EMAIL` when you deploy.
2. Open the **Builder** URL and enter that e-mail.
3. Without `RESEND_API_KEY`, open the Builder service's **Deploy Logs** and search for `Sign-in code`; type the code (valid 5 minutes) or open the printed link. With Resend, the code arrives by e-mail.
4. The admin account gets a workspace on the UNLIMITED plan.

**E-mail options.** Resend: create an API key, set `RESEND_API_KEY` on Builder and set `NEXT_PUBLIC_SMTP_FROM` to an address on a domain you verified in Resend (the default `onboarding@resend.dev` sender only reaches the e-mail address of your Resend account). On Railway Pro you can instead set `SMTP_HOST`, `SMTP_PORT`, `SMTP_USERNAME`, `SMTP_PASSWORD` and `SMTP_SECURE`; the relay is then not used. GitHub or Google sign-in: create an OAuth app with the callback `{builder-url}/api/auth/callback/github` (or `/google`) and set the client id and secret on Builder.

**Adding people.** Sign-up is closed (`DISABLE_SIGNUP=true`): only `ADMIN_EMAIL` and people you invite to a workspace or bot can create accounts. Invitations need a working e-mail option; without one, an invited person can still sign in, and their code appears in the Builder logs for you to pass on.

**Files.** Typebot's S3 client uses path-style requests, which new Railway Buckets reject, so files are stored by SeaweedFS on the Files service's volume. Bot images and avatars live under `public/` and are readable by URL; visitors' uploads under `private/` are only served through Typebot's signed links. Keep the Files public domain: bots load their images from it.

**Custom domains.** Add a domain to Builder and set `NEXTAUTH_URL` on Builder; add one to Viewer and set `NEXT_PUBLIC_VIEWER_URL` on both Builder and Viewer. Redeploy both.

**Scaling and versions.** Builder and Viewer are stateless; add Viewer replicas for heavy bot traffic. Images are pinned by digest in `services/*/Dockerfile`. To upgrade, move both Typebot images to the same new release, back up Postgres and redeploy; the Builder applies migrations on start.

**Resources.** Measured idle on Railway: Builder 0.4–0.56 GB, Viewer 0.3 GB, Files 0.1 GB, Postgres 0.08 GB, Redis 0.03 GB; about 1.1 GB in total and near-zero idle CPU, roughly $11–20 per month. Every service fits the Trial plan's 1 GB limit; Hobby is recommended.

**License.** Typebot is published under the Functional Source License 1.1 (FSL-1.1-Apache-2.0): you may self-host it for your own use, including commercially, but not offer it to others as a competing commercial chatbot-builder service. Each release becomes Apache-2.0 two years later. This is a community template; it is not affiliated with Typebot.

### Why Deploy Typebot on Railway?

Railway runs the builder, viewer, database, Redis and file storage in one project with private networking, HTTPS and volumes. You get a complete Typebot installation in one click, with a sign-in path that works on every plan, and you can add domains or replicas from the dashboard.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/typebot-319-chatbot-builder-postgres-red
