Docker-compose文件

version: '3'

networks:
  rustdesk-net:
    external: false

services:
  hbbs:  # RustDesk 服务器
    container_name: hbbs
    ports:
      - 21114:21114
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    image: rustdesk/rustdesk-server-pro:latest
    command: hbbs
    volumes:
      - ./hbbs:/root
    networks:
      - rustdesk-net
    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:  # RustDesk 中继服务器
    container_name: hbbr
    ports:
      - 21117:21117
      - 21119:21119
    image: rustdesk/rustdesk-server-pro:latest
    command: hbbr
    volumes:
      - ./hbbr:/root
    networks:
      - rustdesk-net
    restart: unless-stopped

 
如果觉得我的文章对你有用,请随意赞赏