Overview#
RustDesk is an open-source remote desktop alternative to TeamViewer or AnyDesk β with a key difference:
you can self-host your own relay and rendezvous servers, giving you full control over your connections, privacy, and performance.
In my homelab, I run RustDesk as a pair of Docker containers:
hbbsβ the signal (rendezvous) server that helps clients find each other.hbbrβ the relay server that forwards encrypted traffic when direct peer-to-peer connections arenβt possible.
Why Host Your Own#
- π§ No external dependencies β You own your relay; no third-party servers.
- π Encrypted connections β TLS with your own key pair.
- π LAN-level speed for local devices.
- π§© Integrates easily with Docker Compose, Traefik, or Nginx Proxy Manager.
Docker Compose Setup#
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
command: hbbs
volumes:
- ./data:/root
network_mode: "host"
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
network_mode: "host"
restart: unless-stopped
