Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active December 14, 2024 19:42
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
- 21116:21116/udp
- 21118:21118
image: rustdesk/rustdesk-server:latest
command: hbbs -k password
volumes:
- ./data:/root
network_mode: host
restart: unless-stopped
# depends_on:
# - hbbr
# hbbr:
# container_name: hbbr
# image: rustdesk/rustdesk-server:latest
# command: hbbr
# volumes:
# - ./data:/root
# network_mode: host
# restart: unless-stopped
@eggplants
Copy link
Author

image

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