Deploy Sequin
Postgres change data capture to Kafka, SQS, webhooks and search indexes
Just deployed
/var/lib/postgresql/data
Just deployed
Redis
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
- Sequin: https://github.com/sequinstream/sequin (release v0.14.6)
- Configuration reference: https://sequinstream.com/docs/reference/configuration
- Template repo: https://github.com/aalfath/sequin-railway-template
Implementation Details
After deploy:
- 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. - 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=logicaland redeploy it. The bundled Postgres already runs that way, so you can try Sequin on a test database inside it. - 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
SEQUIN_ADMIN_EMAIL
Email of the first admin user. You sign in with it.
Redis
redis:8.2