---
title: "Deploy Alby Hub"
description: "Easy, connectable, feature-rich Bitcoin Lightning node for self-sovereignty"
category: "Other"
url: https://railway.com/deploy/alby-hub
---

# Deploy Alby Hub

Easy, connectable, feature-rich Bitcoin Lightning node for self-sovereignty

**[Deploy Alby Hub on Railway](https://railway.com/template/alby-hub)**

- **Creator:** Alby
- **Category:** Other
- **Total deploys:** 17

## Template content

### Alby Hub https://raw.githubusercontent.com/getAlby/hub/a0d3da28036ea7ea0ac7bd96b62cfca9a7542f8e/frontend/public/icon-darkmode.svg

- **Image:** ghcr.io/getalby/hub:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host Alby Hub on Railway

Alby Hub is a self-custodial, open source Lightning wallet service that lets you connect your own wallet or node to apps using Nostr Wallet Connect (NWC). It can run with an embedded Lightning node by default, or connect to external backends like LND, Phoenixd, Cashu, CLN, and Bark.

## About Hosting Alby Hub

Alby Hub runs as a single containerized web service with persistent disk storage for wallet state, app data, and the default embedded SQLite database. If you use the built-in LDK node, persistent storage is required so channel and node data survive restarts. Alby Hub is designed to run continuously so it can stay connected to relays, receive payments, and serve connected apps at any time.

## Common Use Cases

- Run your own self-custodial Lightning wallet that stays online 24/7
- Connect Nostr clients and Lightning apps to your wallet with Nostr Wallet Connect (NWC)
- Receive payments through your own hosted Hub while keeping control of wallet data and backend choice

## Dependencies for Alby Hub Hosting

The Railway template includes persistent storage for Alby Hub data

### Deployment Dependencies

- Alby Hub Website: https://albyhub.com/
- Alby Hub GitHub Repository: https://github.com/getAlby/hub
- Alby Hub Documentation: https://guides.getalby.com/user-guide/alby-hub

### Implementation Details

This template can be deployed as a single service.

Recommended runtime setup:

- Image: `ghcr.io/getalby/hub:latest`
- Port: `8080`
- Persistent disk mount: `/albyhub-data`
- Required environment variable: `WORK_DIR=/albyhub-data/data/albyhub`

Resource notes:

- Embedded LDK node: recommended around 2 GB RAM and 1 GB disk
- External node backends: can run with much lower memory usage

## Why Deploy Alby Hub 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 Alby Hub 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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] 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/alby-hub
