---
title: "Deploy Passflow"
description: "Self-hosted auth server with passkeys, OIDC and an admin panel"
category: "Authentication"
url: https://railway.com/deploy/passflow
---

# Deploy Passflow

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

**[Deploy Passflow on Railway](https://railway.com/template/passflow)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/passflow/manifest.json

- **Creator:** erudenko's Projects
- **Category:** Authentication
- **Total deploys:** 3

## Template content

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

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

### Passflow https://raw.githubusercontent.com/usepassflow/deploy/main/assets/passflow.png

- **Image:** passflow/passflow:v0.100.1
- **Health check:** /ping
- **Public domain:** Yes

## Buckets

- **Bucket**

## Documentation

# 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

- [Passflow documentation](https://docs.usepassflow.com)
- [Passflow image on Docker Hub](https://hub.docker.com/r/passflow/passflow)
- [Deploy templates and first sign-in guide](https://github.com/usepassflow/deploy)

### 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.

## Similar templates

- [Keycloak](https://railway.com/deploy/mSwigX) — [2026-11-04] Keycloak with keywind theme + Apple & Discord providers
- [lua-protector](https://railway.com/deploy/lua-protector) — Test deployed my project first
- [bknd](https://railway.com/deploy/p4nTYL) — Feature-rich yet lightweight backend

Open this page in a browser: https://railway.com/deploy/passflow
