# Self-host RustDesk Server

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

- Page: https://levelrail.com/templates/rustdesk-server/
- JSON: https://levelrail.com/templates/rustdesk-server.json
- Category: Infrastructure
- Licence: AGPL-3.0-or-later (Network copyleft (AGPL) license)
- Source: https://github.com/rustdesk/rustdesk-server
- Upstream docs: https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 1.1.16

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| rustdesk | rustdesk/rustdesk-server-s6 | 1.1.16 | 21115, 21116, 21116, 21117 | rustdesk_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| rustdesk | ENCRYPTED_ONLY | preset |
| rustdesk | RELAY | preset |

## Deploy

### CLI

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

### API

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

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

## Questions

### 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.

Self-host RustDesk Server, RustDesk Server docker compose file, deploy RustDesk Server on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
