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.


Open-source remote desktop software
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the RustDesk template in Server Compass to deploy a self-hosted RustDesk ID and relay server on your VPS, then verify the hbbs and hbbr services are running.
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.

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

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

Choose the RustDesk template. Server Compass fills the hbbs ID server, hbbr relay server, and persistent RustDesk data volume.

Confirm the app name and compose services. In this run, the app was named rustdesk-demo and used ID server host port 21115.

Review the generated compose settings, confirm the RustDesk ports are available, and click Deploy Now.

Keep the deployment modal open while Server Compass uploads the compose file, pulls the RustDesk server image, starts hbbs and hbbr, and verifies the stack.

After deployment finishes, return to the Apps tab and confirm the RustDesk app is marked Running.

Open the app details or service view and confirm both RustDesk services are running. The final verification also checks the hbbs and hbbr containers directly on the VPS.

The RustDesk hbbs and hbbr containers were running on the VPS and Docker published the expected service ports.
It deploys RustDesk hbbs and hbbr services with a shared persistent data volume for the self-hosted ID and relay server.
The tutorial used host port 21115 for the RustDesk ID server on container port 21115. The template also publishes the standard RustDesk relay and NAT traversal ports.
RustDesk Server is not a browser application. It is considered reachable when the hbbs and hbbr services are running and publishing the expected ports for RustDesk clients.
No. The deployment guide should live on the RustDesk template detail page and be linked from the reusable template deployment docs page.
Get your hands dirty: manual RustDesk deployment guide for developers.
Initiate a secure shell connection to your server using the command below.
# Connect to your VPS
ssh root@your-server-ip
# Or with a specific SSH key
ssh -i ~/.ssh/your-key root@your-server-ipFirst time? Docker required! Install it with: curl -fsSL https://get.docker.com | sh
Organize your deployment by creating a dedicated project folder.
# Create and navigate to project directory
mkdir -p ~/apps/rustdesk
cd ~/apps/rustdeskCreate a new docker-compose.yml file and paste this configuration:
services:
hbbs:
image: rustdesk/rustdesk-server:latest
command: hbbs
ports:
- "21115:21115"
- "21116:21116"
- "21116:21116/udp"
- "21118:21118"
volumes:
- rustdesk_data:/root
restart: unless-stopped
hbbr:
image: rustdesk/rustdesk-server:latest
command: hbbr
ports:
- "21117:21117"
- "21119:21119"
volumes:
- rustdesk_data:/root
restart: unless-stopped
volumes:
rustdesk_data:
PORTID server port(default: 21115)Start the services and tail the logs to verify startup.
# Spin up containers
docker compose up -d
# Verify deployment
docker compose ps
# Check logs for errors
docker compose logs -fOpen the required port in your firewall to allow access.
# Allow the application port through firewall
sudo ufw allow 21115/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:21115Why type commands when you can click? Deploy RustDesk the easy way with Server Compass.
After deploying RustDesk with Server Compass, complete these steps to finish setup
Get public key from logs
Configure RustDesk clients
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting RustDesk
Simply download Server Compass, connect to your VPS, and select RustDesk from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
RustDesk requires a minimum of 256MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard RustDesk backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest RustDesk image will be pulled and deployed with zero downtime.
RustDesk 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.

Open-source backend in a single file with realtime database, auth, and file storage

Open-source backend-as-a-service - self-hosted Firebase alternative

Open-source backend framework with dashboard

Full Supabase self-hosted with Kong, GoTrue Auth, Realtime, and Studio
Download Server Compass and deploy RustDesk to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass