Rustdesk Server
		
		
		
		Jump to navigation
		Jump to search
		
Introduction
Information on setting up your own private and secure Rustdesk remote access server.
Site: https://rustdesk.com/
Documentation: https://rustdesk.com/docs/en/self-host/
Server Configuration
Github Repository: https://github.com/rustdesk/rustdesk-server
- Copy docker-compose.yml file below to server
- Run docker-compose up -d, this causes the server to generate the id_ed25519 and id_ed25519.pub keyfiles
- Run docker-compose down -d to stop the server
- Copy id_ed25519* from the hbbs to the hbbr directory
- Note the key of id_ed25519.pub with a cat id_ed25519.pub, you will use this in the clients
- Run docker-compose up -d
docker-compose.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 rust.example.com:21117 -k _    # replace rust.example.com with the FQDN of your server
    volumes:
      - ./hbbs:/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 -k _
    volumes:
      - ./hbbr:/root
    networks:
      - rustdesk-net
    restart: unless-stopped
Client Configuration
Github Repository: https://github.com/rustdesk/rustdesk
The RustDesk client needs to be configured to use the Fully Qualified Domain Name (FQDN) of your server with the Security Key specified.