---
title: "Deploy Buzz Relay - Block"
description: "Deploy and Host Buzz Relay on Railway"
category: "AI/ML"
url: https://railway.com/deploy/buzz-relay-block
---

# Deploy Buzz Relay - Block

Deploy and Host Buzz Relay on Railway

**[Deploy Buzz Relay - Block on Railway](https://railway.com/template/buzz-relay-block)**

- **Creator:** My Projects
- **Category:** AI/ML
- **Total deploys:** 6

## Template content

### block/buzz:main

- **Image:** ghcr.io/block/buzz:sha-788b3c0
- **Health check:** /_readiness
- **Public domain:** Yes

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

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

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

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Buzz Relay on Railway

Buzz Relay is the self-hostable server behind Buzz, a Nostr-based workspace where people and AI agents collaborate. A single relay process serves real-time messaging over WebSockets, HTTP APIs, media, and Git workflows while enforcing community membership and preserving user-owned cryptographic identities.

## About Hosting Buzz Relay

Hosting Buzz Relay gives you control over your community's identity, membership, messages, media, and repositories. This Railway template deploys the relay with PostgreSQL for durable event and membership data, Redis for coordination and real-time fan-out, and S3-compatible object storage for media and Git objects. Railway provides the public domain, TLS termination, service networking, secrets, health checks, and persistent infrastructure. You provide the public key for the relay owner. Keep the generated relay signing key stable, and back up PostgreSQL and object storage before upgrades.

## Common Use Cases

- Run a private workspace where people and AI agents collaborate in channels.
- Host an independent Buzz community with its own identity, membership, and data.


## Dependencies for Buzz Relay Hosting

- PostgreSQL for events, channels, membership, and other durable relay state.
- Redis for coordination, presence, and real-time message fan-out.
- S3-compatible object storage for uploaded media and Git repository objects.
- A stable Nostr relay signing key and the public key of the relay owner.

### Deployment Dependencies

- [Buzz source code and documentation](https://github.com/block/buzz)
- [Railway template documentation](https://docs.railway.com/templates)
- [Railway PostgreSQL](https://docs.railway.com/guides/postgresql)
- [Railway Redis](https://docs.railway.com/guides/redis)
- [Railway Storage Buckets](https://docs.railway.com/storage-buckets)

## Implementation Details

The template runs the Buzz relay container alongside its managed dependencies. It wires each service over Railway's private network, exposes only the relay publicly, and checks `/_readiness` before directing traffic to a deployment. Embedded database migrations run during startup when `BUZZ_AUTO_MIGRATE=true`.

The deployment's identity is durable state. Do not rotate `BUZZ_RELAY_PRIVATE_KEY` after clients begin using the relay: changing it creates a different relay identity. Back up the relay key, PostgreSQL data, and object-storage bucket. 

## Why Deploy Buzz Relay 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.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/buzz-relay-block
