一、安装Docker Desktop Installer
二、CMD拉取RustDesk镜像
docker image pull rustdesk/rustdesk-server
三、创建docker-compose.yml文件
services:hbbs:container_name: hbbsimage: rustdesk/rustdesk-server:latestcommand: hbbs -r 公网IP:端口(21117)environment:- "RELAY=hbbr:21117"- "ENCRYPTED_ONLY=1"ports:- 21115:21115- 21116:21116- 21116:21116/udp- 21118:21118volumes:- ./data:/rootnetworks:- rustdesk-netdepends_on:- hbbrrestart: unless-stoppedhbbr:container_name: hbbrimage: rustdesk/rustdesk-server:latestcommand: hbbrports:- 21117:21117- 21119:21119volumes:- ./data:/rootnetworks:- rustdesk-netrestart: unless-stopped networks:rustdesk-net:external: false
四、CMD到docker-compose.yml文件目录下运行
docker-compose up -d
五、查看Key
六、配置