Run Alby Hub with Fly.io
Run your own Alby Hub on Fly.io using the official Alby Hub Docker image and a simple fly.toml configuration.
Prerequisites
Fly.io is a good option if you want to self-host Alby Hub in the cloud without managing a full server manually. This guide walks you through creating a Fly.io app, configuring persistent storage, deploying Alby Hub, opening it in your browser and updating it later.
Before you begin, make sure you have:
Fly.io may require billing details before you can deploy an app. Depending on Fly.io's current pricing and your app usage, charges may apply. See their pricing page for more details.
Deploy Alby Hub on Fly.io
01
Sign into your Fly.io via the CLI
Run the following command:
When your browser opens to the Fly.io sign-in screen, enter your user name and password to sign in.
After the login is complete, return to your terminal.
02
Create a new folder on your computer for this Fly.io deployment. For example:
This folder will store your fly.toml configuration file.
03
Create the fly.toml configuration file
Inside the folder, create a file named fly.toml
Paste the following configuration into the file:
Change the name 'Alby-Hub' to a custom name. For example: 'My-AlbyHub'
You can also change the primary_region value if you want to deploy Alby Hub in a different Fly.io region. Choose a region close to where you will usually access your Hub. Check Fly regions for more information.
04
Create the Fly.io app
Make sure you are still inside the folder where your fly.toml file is saved.
During setup, the Fly.io CLI may ask a few questions:
05
Protect initial setup
The setup code only protects initial onboarding, including restoring into a new Hub. Itโs not your unlock password or recovery phrase, and itโs no longer needed once setup is complete.
06
Deploy Alby Hub
07
Open your Alby Hub
After deployment, open your Fly.io dashboard and go to the Apps section.
Click on the app to access it on your browser.

08
Set up Alby Hub

How to update Alby Hub on Fly.io
In Powershell on Windows, navigate to the directory of your fly.toml with cd [directory path]. Then type fly deploy in Powershell. You'll see further information printed in Powershell.
