Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active May 6, 2025 11:45
Show Gist options
  • Save eggplants/af184b3ca3930b0a603555c1a944554b to your computer and use it in GitHub Desktop.
Save eggplants/af184b3ca3930b0a603555c1a944554b to your computer and use it in GitHub Desktop.
RustDesk Server on Docker
# 0. Server A and clients B/C are on the same Tailnet
# 1. Start RustDesk Server on A in Docker
# 2. Install RustDesk Client on B/C and set Magic DNS of A and Server Password Key
# 3. B/C can be connected to each other
services:
hbbs:
container_name: hbbs
ports:
- 21115:21115
- 21116:21116/tcp
- 21116:21116/udp
- 21118:21118
image: rustdesk/rustdesk-server:latest
command: hbbs
volumes:
- ./data:/root
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
ports:
- 21117:21117
- 21119:21119
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
restart: unless-stopped
@eggplants
Copy link
Author

Run cat data/id_ed25519.pub to check Server Key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment