Railway

Deploy Authentik

Open-source identity provider with SSO, OIDC, SAML, MFA, and LDAP support

Deploy Authentik

Just deployed

Just deployed

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host Authentik on Railway

Authentik is an open-source identity provider and SSO platform that supports OAuth2, OIDC, SAML, LDAP, and SCIM. It lets you centralize authentication across all your applications, enforce MFA, and manage users with a built-in admin UI and flow engine.

About Hosting Authentik

Hosting Authentik requires running two coordinated services ΓÇö a server (handles HTTP and authentication flows) and a worker (handles background tasks like email and policy execution) ΓÇö plus a PostgreSQL database and a Redis instance for session storage and task queuing. Both the server and worker share the same secret key and database credentials. On Railway, Postgres and Redis are provisioned as managed services, and all inter-service credentials are wired automatically via reference variables. Persistent volumes are not required because Authentik stores all state in PostgreSQL.

Common Use Cases

  • Centralized SSO and OIDC provider for self-hosted applications
  • MFA enforcement and user lifecycle management across internal tools
  • LDAP/SAML identity bridge for legacy enterprise integrations
  • Outpost proxy authentication for services that lack native auth support
  • Admin-controlled OAuth2 authorization server for developer platforms

Dependencies for Authentik Hosting

  • PostgreSQL 14+ (Railway managed)
  • Redis 7+ (Railway managed)

Deployment Dependencies

Implementation Details

Two Dockerfiles extend the upstream ghcr.io/goauthentik/server image with a single CMD override ΓÇö server for the HTTP service and worker for the background task processor. Both images are identical except for that CMD, so they always run the same Authentik version.

After first deploy, complete the initial admin setup at:

https:///if/flow/initial-setup/

Why Deploy Authentik 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 Authentik 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.


Template Content

More templates in this category

View Template
Keycloak
Keycloak template with keywind theme + apple and discord providers

beuz
View Template
NEW
Pocket ID
Self-hosted OIDC provider with passkey authentication

c-treinta
View Template
lua-protector
Test deployed my project first

trianaq765-cmd's Project