Deploy Sequin

Postgres change data capture to Kafka, SQS, webhooks and search indexes

Deploy Sequin

/var/lib/postgresql/data

Just deployed

/data

Deploy and Host Sequin on Railway

Sequin is an open-source (MIT) change data capture tool for Postgres. It reads your database's logical replication stream and delivers every insert, update and delete to sinks such as Kafka, SQS, SNS, Redis, NATS, RabbitMQ, Elasticsearch, Typesense, Meilisearch or HTTP webhooks, with backfills, filters and transforms.

About Hosting Sequin

Sequin is a single Elixir service that needs its own Postgres database for configuration and a Redis that keeps its data across restarts. This template deploys Sequin v0.14.6 built from a public GitHub repo that pins the official image by digest, plus Railway Postgres and Railway Redis, both on volumes (Redis with its append-only file on). Secrets are generated. The only prompt is the first admin's email: the admin is created on first start with a generated password, while Sequin's built-in default login and open sign-up stay off. The public URL has a /health check. Updates arrive as Railway update notices.

Common Use Cases

  • Stream Postgres changes to Kafka, SQS, SNS, NATS or RabbitMQ for event-driven services
  • Keep Elasticsearch, Typesense, Meilisearch or Redis in sync with your tables
  • Send webhooks or fill an audit log whenever rows change

Dependencies for Sequin Hosting

  • Postgres (bundled, for Sequin's own configuration)
  • Redis (bundled, persistent)
  • A Postgres database to stream from, with wal_level = logical

Deployment Dependencies

Implementation Details

After deploy:

  1. Open the Sequin service's public URL and sign in with the email you entered and the generated SEQUIN_ADMIN_PASSWORD (Sequin service, Variables tab). Change the password in the console if you like.
  2. Click Connect database and follow the console's SQL to create a publication and a replication slot in the database you want to stream from. That database needs wal_level = logical. For a Railway Postgres, set its start command to /usr/bin/tini -g -- /usr/local/bin/wrapper.sh postgres -p 5432 -c listen_addresses=* -c wal_level=logical and redeploy it. The bundled Postgres already runs that way, so you can try Sequin on a test database inside it.
  3. Add a sink, and a backfill if you need the existing rows.

VAULT_KEY encrypts the credentials Sequin stores: never change it after the first deploy. Invite more users from Settings, Accounts. Optional settings such as SEQUIN_TELEMETRY_DISABLED=true or GitHub sign-in are listed in Sequin's configuration reference.

Updates: the Sequin service builds from the template repo. When the pinned version is bumped there, Railway shows an update notice on your project and you choose when to apply it. Sequin runs its migrations on start. Read the repo's CHANGELOG.md first.

Why Deploy Sequin 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 Sequin 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
Celery | Web, Worker and Scheduler as Three Services
Web, worker and scheduler wired up: Celery on Redis, outcomes in Postgres.

Templates Guru
0
View Template
Redpanda
Redpanda 26.2: Kafka-compatible streaming broker with Kafbat UI console

Agaz Self-Host
2
View Template
smoothmq
A drop-in replacement for AWS SQS

poundifdef
7