Skip to main content

RustDesk Compose File

·156 words·1 min

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
Kolton Corr
Author
Kolton Corr
A little bit about you