Back to all templates
Casdoor logo

Casdoor

Development512MB+ RAM

UI-first identity and access management platform with OIDC, OAuth2, SAML, CAS, LDAP, and SCIM support

developmentiamcasdooropen-sourceself-hosteddocker

Deploy Casdoor in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Casdoor

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Step-by-step deployment guide

Deploy Casdoor on a VPS with Server Compass

Use the Casdoor template in Server Compass to deploy a self-hosted identity and access management platform on your VPS, then verify the web UI.

About 10 minutesBrowser verified
1
Step 1

Open the server Apps tab

Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Server Compass Apps tab before creating a Casdoor app
2
Step 2

Choose an app template

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Choosing to deploy an app from a Server Compass template
3
Step 3

Search for Casdoor

Use the template picker search to find Casdoor in the Server Compass template catalog.

Searching for Casdoor in the Server Compass template picker
4
Step 4

Select the Casdoor template

Choose the Casdoor template. Server Compass fills the identity service, MySQL database, generated database password, persistent volume, and public web port.

Casdoor template selected in Server Compass
5
Step 5

Review the Casdoor settings

Confirm the app name and compose service. In this run, the app was named casdoor-demo and used host port 4126.

Reviewing Casdoor project settings and compose service
6
Step 6

Deploy Casdoor

Review the generated compose settings, confirm the Casdoor web port is available, and click Deploy.

Reviewing Casdoor web port before deployment
7
Step 7

Watch the deployment progress

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Casdoor image, starts the container, and verifies the stack.

Server Compass deploying the Casdoor template on the VPS
8
Step 8

Confirm Casdoor is running

After deployment finishes, return to the Apps tab and confirm the Casdoor app is marked Running with its application URL available.

Casdoor template running in the Server Compass Apps tab
9
Step 9

Open Casdoor in the browser

Open the application URL in a browser. The Casdoor login screen confirms the identity management web UI is reachable.

The deployed Casdoor web UI loaded in a browser

After Casdoor Opens

  • Place Casdoor behind HTTPS before connecting real client applications.
  • Change the default admin credentials immediately after first login.
  • Configure the public origin and callback URLs before enabling OAuth/OIDC clients.
  • Use least-privilege database/network access so only Casdoor reaches its MySQL container.
  • Back up the Casdoor MySQL volume because it stores users, applications, organizations, and signing keys.
  • Keep the Casdoor image updated for dependency and security fixes.

Verified Result

The Casdoor web interface loaded successfully from the deployed container.

Casdoor deployment questions

What does the Casdoor template deploy?

It deploys the Casdoor IAM web app with a MySQL database and persistent data volume.

Which port did the tutorial use?

The tutorial used host port 4126, which maps to the Casdoor web UI on container port 8000.

Does Casdoor need setup after deployment?

Yes. Create the first admin account, configure the public URL, then add bot integrations and provider keys.

Should this become a blog post?

No. The deployment guide should live on the Casdoor template detail page and be linked from the reusable template deployment docs page.

After Deployment

After deploying Casdoor with Server Compass, complete these steps to finish setup

1

Visit the application URL and log in as admin (default password: 123)

2

IMMEDIATELY change the admin password under user settings

3

Configure your default organization, applications, and identity providers (OAuth, SAML, LDAP)

4

Integrate clients via OIDC/OAuth2 endpoints

Need help? Check out our documentation for detailed guides.

Casdoor FAQ

Common questions about self-hosting Casdoor

How do I deploy Casdoor with Server Compass?

Simply download Server Compass, connect to your VPS, and select Casdoor from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Casdoor?

Casdoor requires a minimum of 512MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Casdoor data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Casdoor backup and restore procedures.

How do I update Casdoor to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Casdoor image will be pulled and deployed with zero downtime.

Is Casdoor free to self-host?

Casdoor is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Casdoor?

Download Server Compass and deploy Casdoor to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass