Self-host RustDesk Server with Levelrail

Self-hosted RustDesk ID and relay servers (AGPL-3.0).

  • Authorrustdesk
  • LicenceAGPL-3.0-or-later
  • Memory128 MiB
  • Archarm64
  • Services1

How to self-host RustDesk Server

  1. Pull the images

    One image is pulled on your server.

    Show images
    • rustdesk/rustdesk-server-s6:1.1.16
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on ports 21115, 21116, 21117.

  3. Fill in the secrets

    2 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

RustDesk Server requirements

Memory
About 128 MiB
Architectures
amd64 image published, arm64 image published
Ports
21115, 21116, 21117
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-or-later, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes ports 21115, 21116, 21117 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then RustDesk Server. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the RustDesk Server docs page.

Deploy RustDesk Server your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy RustDesk Server from the CLI

levelrail-cli templates deploy rustdesk-server --name my-rustdesk-server

Deploy RustDesk Server with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/rustdesk-server/deploy

RustDesk Server configuration

RustDesk Server services

ServiceImagePortsVolumes
rustdesk rustdesk/rustdesk-server-s6:1.1.16 21115, 21116, 21116, 21117 rustdesk_data -> /data

RustDesk Server environment variables

VariableServiceValue
ENCRYPTED_ONLY rustdesk Preset by the template
RELAY rustdesk Preset by the template

Ports and volumes

Ports
21115, 21116, 21117
Volumes
1 named mount: rustdesk_data -> /data

RustDesk Server FAQ

How much memory does RustDesk Server need?

The catalog lists about 128 MiB of memory for RustDesk Server.

Does RustDesk Server run on arm64?

For RustDesk Server, an arm64 image is published; amd64 is image published.

What licence is RustDesk Server under?

RustDesk Server is licensed under AGPL-3.0-or-later, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does RustDesk Server need configuration before it starts?

No. The template fills in its own defaults.

Which ports does RustDesk Server use?

RustDesk Server listens on ports 21115, 21116 and 21117 inside the stack.

Where does RustDesk Server keep its data?

In a named volume: rustdesk_data mounted at /data.

Can I deploy RustDesk Server on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for RustDesk Server, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image rustdesk/rustdesk-server-s6:1.1.16 is what you deploy there.

levelrail-cli templates deploy rustdesk-server --name my-rustdesk-server