……

Windows的Docker安装RustDesk自建服务

一、安装Docker Desktop Installer 

二、CMD拉取RustDesk镜像

docker image pull rustdesk/rustdesk-server

三、创建docker-compose.yml文件

services:
  hbbs:
    container_name: hbbs
    image: rustdesk/rustdesk-server:latest
    command: hbbs -r 公网IP:端口(21117)
    environment:
      - "RELAY=hbbr:21117"
      - "ENCRYPTED_ONLY=1"
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    volumes:
      - ./data:/root
    networks:
      - rustdesk-net
    depends_on:
      - hbbr
    restart: unless-stopped
  hbbr:
    container_name: hbbr
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    ports:
      - 21117:21117
      - 21119:21119
    volumes:
      - ./data:/root
    networks:
      - rustdesk-net
    restart: unless-stopped
networks:
  rustdesk-net:
    external: false

四、CMD到docker-compose.yml文件目录下运行

docker-compose up -d

五、查看Key

六、配置

 

posted @ 2024-08-03 11:01  十零  阅读(300)  评论(0编辑  收藏  举报