---
title: "Deploy casdoor"
description: "Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway"
category: "Authentication"
url: https://railway.com/deploy/casdoor
---

# Deploy casdoor

Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway

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

- **Creator:** kmaki's Projects
- **Category:** Authentication
- **Total deploys:** 1

## Template content

### casdoor

- **Image:** casbin/casdoor-all-in-one:3.18.0
- **Public domain:** Yes

## Documentation

# Deploy and Host Casdoor on Railway

## About Hosting Casdoor on Railway
Casdoor runs as a single Dockerized IAM/SSO service on Railway using the official all-in-one image. This gives you a fast browser-ready deployment with built-in SQLite for evaluation and demos.

## Tech Stack
- Casdoor (Go backend + Web UI)
- SQLite (embedded in casdoor-all-in-one)
- Docker image delivery on Railway

## Why Deploy Casdoor on Railway
Railway provides quick image-based deployment, instant HTTPS domains, and simple environment-variable configuration. You can launch Casdoor in one service and access the admin console immediately.

## Common Use Cases
- OAuth 2.1 / OIDC identity provider for internal apps
- Centralized SSO portal for teams
- Rapid IAM prototyping with built-in admin UI

## Deployment Notes
- Service image is pinned to `casbin/casdoor-all-in-one:3.18.0` for predictable deployments.
- HTTP routing uses `PORT=8000`.
- Default initial login is `built-in/admin` with password `123`.
- `ADMIN_USERNAME` and `ADMIN_PASSWORD` are exposed as template variables for visibility.
- This all-in-one variant is best for quick start/testing; use external DB topology for production.

## Dependencies for Casdoor on Railway
This template uses a single self-contained service without external database dependencies.

### Deployment Dependencies

| Service | Image | Port | Volume |
|---------|-------|------|--------|
| casdoor | casbin/casdoor-all-in-one:3.18.0 | 8000 | - |

## Similar templates

- [Keycloak](https://railway.com/deploy/mSwigX) — Keycloak template with keywind theme + apple and 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/casdoor
