rustdesk自己搭建配置

docker编排 (可以安装宝塔linux)

搭建中继服务器

csharp 复制代码
services:
  rustdesk_Y662:
    image: rustdesk/rustdesk-server-s6:${VERSION}
    #    container_name: ${CONTAINER_NAME}
    deploy:
      resources:
        limits:
          cpus: ${CPUS}
          memory: ${MEMORY_LIMIT}
    environment:
        - RELAY=${RUSTDESK_HOST_ADDR}:${RUSTDESK_PORT_HBBR}
        - ENCRYPTED_ONLY=1
    ports:
        - ${HOST_IP}:${RUSTDESK_PORT_NAT}:21115
        - ${HOST_IP}:${RUSTDESK_PORT_HBBS}:21116
        - ${HOST_IP}:${RUSTDESK_PORT_HBBS}:21116/udp
        - ${HOST_IP}:${RUSTDESK_PORT_HBBR}:21117
        - ${HOST_IP}:${RUSTDESK_PORT_WEB_CLIENT_1}:21118
        - ${HOST_IP}:${RUSTDESK_PORT_WEB_CLIENT_2}:21119
    restart: always
    volumes:
        - ${APP_PATH}/data:/data
    labels:
      createdBy: "bt_apps"
    networks:
      - baota_net

networks:
  baota_net:
    external: true

搭建api服务器

bash 复制代码
networks:
  rustdesk-net:
    external: false

services:
  rustdesk:
    image: lejianwen/rustdesk-api:full-s6
    ports:
      - "27250:21114"    # 添加引号确保端口格式正确第一个是服务器开放的端口,是需要改的
    environment:
      RELAY: "118.89.88.198:21117"
      ENCRYPTED_ONLY: "1"
      TZ: "Asia/Shanghai"
      RUSTDESK_API_RUSTDESK_ID_SERVER: "【server_ip】:21116"
      RUSTDESK_API_RUSTDESK_RELAY_SERVER: "【server_ip】:21117"
      RUSTDESK_API_RUSTDESK_API_SERVER: "http://【server_ip】:27250"
    volumes:
      - /data/rustdesk/server:/data
      - /data/rustdesk/server:/app/conf/data
      - /data/rustdesk/api:/app/data
    networks:
      - rustdesk-net
    restart: unless-stopped
    ```
相关推荐
海鸥812 小时前
podman和与docker的比较 及podman使用
docker·容器·podman
zyk_5209 小时前
Docker desktop如何汉化
运维·docker·容器
韭菜盖饭9 小时前
解决Docker端口映射后外网无法访问的问题
运维·docker·容器
jingjingjing11119 小时前
笔记:docker安装(ubuntu 20.04)
笔记·docker·容器
qq_3392822310 小时前
docker之network
运维·docker·容器
愿你天黑有灯下雨有伞12 小时前
Docker 安装 Elasticsearch 教程
运维·elasticsearch·docker
@郭小茶13 小时前
windows部署docker
windows·docker·容器
XAL113 小时前
Docker的备份与恢复
运维·docker·容器
杨浦老苏15 小时前
开源一体化白板工具Drawnix
docker·群晖·图片·白板
geek_super15 小时前
Docker学习--容器的root文件系统(rootfs)命令--docker diff 命令
docker