---
title: "Deploy Chatwoot (w/ email setup)"
description: "Chatwoot with email setup on the deploy form, private Postgres and Redis."
category: "Other"
url: https://railway.com/deploy/chatwoot-w-email-setup
---

# Deploy Chatwoot (w/ email setup)

Chatwoot with email setup on the deploy form, private Postgres and Redis.

**[Deploy Chatwoot (w/ email setup) on Railway](https://railway.com/template/chatwoot-w-email-setup)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/chatwoot-w-email-setup/manifest.json

- **Creator:** AvgSoft
- **Category:** Other

## Template content

### Redis https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@4c4aeb457ee3420b33039aa7b9a97d11d18403d2/service-icons/redis.svg

- **Image:** redis:8.2
- **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"`

### Chatwoot https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@4c4aeb457ee3420b33039aa7b9a97d11d18403d2/service-icons/chatwoot.svg

- **Image:** chatwoot/chatwoot:v4.19.1-ce
- **Start command:** `/bin/sh -c "rm -f /app/tmp/pids/server.pid; until pg_isready -q -h $PGHOST -p $PGPORT; do sleep 2; done; bundle exec rails db:chatwoot_prepare || exit 1; bundle exec sidekiq -C config/sidekiq.yml & S=$!; bundle exec rails s -b 0.0.0.0 -p $PORT & R=$!; trap 'kill -TERM $S $R; wait; exit 0' TERM INT; while kill -0 $S && kill -0 $R; do sleep 5; done; kill -TERM $S $R; wait; exit 1"`
- **Health check:** /api
- **Public domain:** Yes

### Postgres https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@4c4aeb457ee3420b33039aa7b9a97d11d18403d2/service-icons/postgresql.svg

- **Image:** pgvector/pgvector:pg16

## Documentation

# Deploy and Host Chatwoot (w/ email setup) on Railway

Chatwoot is an open-source support inbox for website chat, email and messaging apps. This template asks for your email settings on deploy, with guided fields for Gmail and other providers, and keeps the database private.

![Chatwoot customer support on Railway](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@4c4aeb457ee3420b33039aa7b9a97d11d18403d2/chatwoot/banner.png)

## About Hosting Chatwoot (w/ email setup)

You get Chatwoot 4.19.1, Postgres with pgvector and Redis, with secrets generated per deploy. Fill in the email fields (each explains what to enter), then open your Chatwoot URL and create the admin account. Only invited people can sign up.

## Common Use Cases

- Website live chat
- Shared support email inbox
- WhatsApp and social messages

## Dependencies for Chatwoot (w/ email setup) Hosting

- PostgreSQL (pgvector)
- Redis

### Deployment Dependencies

- [Chatwoot environment variables](https://developers.chatwoot.com/self-hosted/configuration/environment-variables)
- [Chatwoot storage providers](https://developers.chatwoot.com/self-hosted/deployment/storage/supported-providers)

### Implementation Details

![Architecture: visitors and your team reach Chatwoot; Postgres and Redis stay on the private network; email goes out through your SMTP provider](https://cdn.jsdelivr.net/gh/mikedepo/railway-template-assets@4c4aeb457ee3420b33039aa7b9a97d11d18403d2/chatwoot/architecture.png)

| Provider | SMTP_ADDRESS | SMTP_USERNAME | SMTP_PASSWORD |
| --- | --- | --- | --- |
| Gmail | smtp.gmail.com | your address | app password |
| SendGrid | smtp.sendgrid.net | apikey | API key |
| Brevo | smtp-relay.brevo.com | SMTP login | SMTP key |
| Resend | smtp.resend.com | resend | API key |

Back up the Chatwoot volume (attachments). With a custom domain, update `FRONTEND_URL`.

## Why Deploy Chatwoot (w/ email setup) 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 Chatwoot (w/ email setup) 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.


**Updated 2026-10-28:** first release, Chatwoot 4.19.1.

Based on the Chatwoot template by Brody.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/chatwoot-w-email-setup
