The relay does not need the license key, only the ID server.
sudo nano /etc/systemd/system/rustdesk-hbbr.service
[Unit] Description=RustDesk Relay Server (Pro) After=network.target[Service] Type=simple User=root ExecStart=/usr/local/bin/hbbr Restart=on-failure
[Install] WantedBy=multi-user.target
Before installing the license, ensure you have the following: rustdesk server pro license key install
Cause: Your server cannot reach the RustDesk licensing API (usually https://license.rustdesk.com).
Fix: Ensure your server’s firewall allows outbound HTTPS (port 443). If behind a corporate proxy, you must set the HTTP_PROXY environment variable alongside the license key.
This is the fastest way to get the Pro server running with your license.
Step 1: Create the directory
mkdir ~/rustdesk-pro && cd ~/rustdesk-pro
Step 2: Create docker-compose.yml
Paste the following. Crucially, you will add your license key here.
version: '3'services: hbbs: image: rustdesk/rustdesk-server-pro:latest container_name: rustdesk-hbbs-pro command: hbbs volumes: - ./data:/root environment: - ENCRYPTED_ONLY=1 - RUSTDESK_LICENSE=<YOUR_LICENSE_KEY_GOES_HERE> # <-- CRITICAL LINE network_mode: host restart: unless-stopped
hbbr: image: rustdesk/rustdesk-server-pro:latest container_name: rustdesk-hbbr-pro command: hbbr volumes: - ./data:/root environment: - RUSTDESK_LICENSE=<YOUR_LICENSE_KEY_GOES_HERE> # <-- SAME KEY HERE network_mode: host restart: unless-stopped
rustdesk-web: image: rustdesk/rustdesk-web-pro:latest container_name: rustdesk-web-pro environment: - API_SERVER=ws://<YOUR_SERVER_IP>:21114 ports: - "80:80" restart: unless-stoppedThe relay does not need the license key, only the ID server
Step 3: Insert your license key
Replace <YOUR_LICENSE_KEY_GOES_HERE> with the actual key (e.g., RDPRO-XXXXX-YYYYY-ZZZZZ).
Step 4: Launch the containers
docker-compose up -d
Step 5: Verify activation
docker logs rustdesk-hbbs-pro
Look for: [INFO] License valid. Welcome to RustDesk Pro