RustDesk is an open-source remote desktop solution. This project packages the official RustDesk server components for easy deployment using Docker Compose or compatible orchestration tool.
- hbbs — Broker Server: Handles client registrations, authentication, and coordination.
- hbbr — Relay Server: Relays encrypted traffic between clients, enabling NAT traversal.
- A static public IP address or a domain name is required for clients to reliably connect to your server.
- The following ports must be forwarded from your router/firewall to the host running the containers:
- 21115 (TCP)
- 21116 (TCP/UDP)
- 21117 (TCP)
- 21118 (TCP)
- 21119 (TCP)
- Ensure your firewall allows inbound connections on these ports.
-
Clone the repository:
git clone https://github.com/Mournweiss/rustdesk-server.git cd rustdesk-server -
Configure environment variables:
-
Copy
.env.exampleto.envand adjust as needed.cp .env.example .env
-
Set the
HBBS_RELAY_ADDRvariable with your server's public IP address or domain name (without port).
-
-
Start the services:
podman-compose up --build -d
-
Access:
- Clients can now connect to your server using the public IP/domain and the exposed ports with public key in
data/id_ed25519.pub.
- Clients can now connect to your server using the public IP/domain and the exposed ports with public key in
-
services/— Contains build files and documentation for each service: -
compose.yml— Compose configuration
This project packages and distributes the official RustDesk server components. See RustDesk License.