Deploy Passflow

Self-hosted auth server with passkeys, OIDC and an admin panel

Deploy Passflow

/var/lib/postgresql/data

Just deployed

Bucket

Bucket

Just deployed

Deploy and Host Passflow with Railway

Passflow is a source-available auth server with an admin panel. It is an OIDC and OAuth2 provider with passkeys, magic links, social login, 2FA and multi-tenancy. This template runs its Docker image with a Postgres database and a bucket.

About Hosting Passflow

The template has three parts: Passflow, Postgres and a bucket. Passflow keeps users and sessions in Postgres, and its settings and keys in the bucket. Anyone with a copy of the bucket has those keys. For production, keep settings and keys in a separate store such as AWS SSM. When you deploy, you type the first admin sign-in as email:password. Open /adminpanel on the public domain, sign in and add a passkey. Then delete PASSFLOW_EMERGENCY_LOGIN_CREDENTIALS and redeploy. The image is pinned to one release, so you choose when to update.

Common Use Cases

  • Sign-in for your own web and mobile apps over OIDC or OAuth2
  • Passkeys, magic links, social login and 2FA from one server
  • B2B apps where each customer is a tenant with its own users and roles

Dependencies for Passflow Hosting

  • Railway PostgreSQL
  • Railway Storage Bucket

Deployment Dependencies

Why Deploy Passflow on Railway?

The template fills in the database and bucket variables, so you type one value: your first admin sign-in. The database and the bucket are in your own Railway project.

After you deploy

Set up backups before you store real users. Open Postgres and look for Backups and High Availability. They may need a Pro workspace.

Check that the database has no public access. Open Postgres, then Settings, then Networking, and delete any TCP proxy under Public Networking. With the Railway CLI, run railway tcp-proxy list --service Postgres, then railway tcp-proxy delete TCP_PROXY_ID.

Leave Railway's "Enable CDN Caching" off for the Passflow service. If you turn it on, sign in and check that Passflow still records your own address.


Template Content

Bucket

Bucket

More templates in this category

View Template
Keycloak
[2026-11-04] Keycloak with keywind theme + Apple & Discord providers

beuz
754
View Template
lua-protector
Test deployed my project first

trianaq765-cmd's Project
38
View Template
bknd
Feature-rich yet lightweight backend

10