VPS运维

Docker 自建RustDesk服务端

2023-8-26 1227字 2,296
设置权限
# 新增一个配置文件
touch /root/rustdesk-server.yml
# 并给与执行权限
chmod 755 rustdesk-server.yml

在配置rustdesk-server.yml文件中添加以下内容:

# /root/rustdesk-server.yml
version: '3'

networks:
  rustdesk-net:
    external: false

services:
  hbbs:
    container_name: hbbs
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    image: rustdesk/rustdesk-server:latest
    command: hbbs -r rustdesk.ixu.me:21117 -k tokennnnnnnnnnnnnnnnnnnnnn
    volumes:
      - /root/rustdesk-server:/root
    networks:
      - rustdesk-net
    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:
    container_name: hbbr
    ports:
      - 21117:21117
      - 21119:21119
    image: rustdesk/rustdesk-server:latest
    command: hbbr
    volumes:
      - /root/rustdesk-server:/root
    networks:
      - rustdesk-net
    restart: unless-stopped
启动RustDesk服务器
# 启动
docker compose -f /root/rustdesk-server.yml up -d

参考

  1. docker-compose自建RustDesk远程控制服务器
  2. rustdesk自建服务器
版权声明:Shire 发表于 2023-8-26
转载请注明: Docker 自建RustDesk服务端 | Shire

评论

该文章已经关闭评论