
Deploy Keycloak
[2026-11-04] Keycloak with keywind theme + Apple & Discord providers
Keycloak
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host Keycloak on Railway
This template will spin a Postgres instance and use it to power a Keycloak docker image.
About Hosting Keycloak
I have added a custom keywind theme (will soon include dark mode), Discord identity provider and Apple identity provider.
It should be pretty straight forward to run, just set up an admin login and password and it should work.
Things of Note:
- Communication to Postgres is done exclusively over the private network and the database is not exposed externally in any way by default, if you want to enable access from outside of the private network you can go to the databases settings to enable TCP proxying and enter the internal port (5432). the TCP proxy can be removed at any point to close off external access.
Common Use Cases
- Single sign-on (SSO) for your apps with OpenID Connect or SAML
- Social login through the preconfigured Discord and Apple identity providers
- Central user management, roles and permissions for internal tools
Dependencies for Keycloak Hosting
- A Postgres database (deployed by this template, private-network only by default)
Deployment Dependencies
Why Deploy Keycloak 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 Keycloak 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
Keycloak
leonardochappuis/keycloak-dockerKEYCLOAK_ADMIN
Your default admin username
