Deploy Buzz Relay
Deploy and Host Buzz Relay on Railway
block/buzz:main
Just deployed
Redis
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Bucket
Bucket
Just deployed
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
- Railway template documentation
- Railway PostgreSQL
- Railway Redis
- Railway 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.
Template Content
block/buzz:main
ghcr.io/block/buzz:sha-788b3c0RELAY_OWNER_PUBKEY
Owner's 64-character hex Nostr public key; not npub
Redis
redis:8.2.1Bucket
Bucket
