Sign inSign up

hangyvv/rustdesk-server-s6

By hangyvv

•Updated about 2 months ago

Self-hosted RustDesk container image with s6-overlay.

Image
0

2.3K

hangyvv/rustdesk-server-s6 repository overview

⁠RustDesk Server S6

RustDesk Server S6 is a self-hosted RustDesk container image built on s6-overlay⁠. It bundles hbbs and hbbr into a single compact runtime with proper service supervision.

⁠Highlights

  • Self-hosted RustDesk server (hbbs + hbbr) in one image
  • Built with s6-overlay for reliable service supervision and health checks
  • Automatic key-pair handling via Docker secrets or environment variables
  • Persistent data through a single /data volume

⁠Exposed ports

PortServicePurpose
21115/tcphbbsNAT type test
21116/tcphbbsTCP hole punching / heartbeat
21116/udphbbsID registration / heartbeat
21117/tcphbbrRelay service
21118/tcphbbsWeb client support
21119/tcphbbrWeb client support

⁠Environment variables

VariableDefaultDescription
RELAYrelay.example.comPublic address advertised for the relay (hbbr)
ENCRYPTED_ONLY0Set to 1 to force encrypted connections (-k _)
KEY_PUB(unset)Public key content, written to /data/id_ed25519.pub
KEY_PRIV(unset)Private key content, written to /data/id_ed25519

Keys can also be supplied as Docker secrets named key_pub and key_priv. If no key pair is provided, hbbs generates one on first start.

⁠Quick start

docker run -d \
  --name rustdesk-server \
  -e RELAY=relay.example.com \
  -p 21115-21119:21115-21119 \
  -p 21116:21116/udp \
  -v rustdesk-data:/data \
  hangyvv/rustdesk-server-s6:latest
⁠docker-compose
services:
  rustdesk-server:
    image: hangyvv/rustdesk-server-s6:latest
    container_name: rustdesk-server
    environment:
      - RELAY=relay.example.com
      - ENCRYPTED_ONLY=0
    ports:
      - "21115-21119:21115-21119"
      - "21116:21116/udp"
    volumes:
      - rustdesk-data:/data
    restart: unless-stopped

volumes:
  rustdesk-data:

⁠Data & keys

All persistent state, including the generated id_ed25519 / id_ed25519.pub key pair, lives under the /data volume. Back this volume up to preserve your server identity across container recreation.

Tag summary

Content type

Image

Digest

sha256:5e8fab3eb…

Size

11 MB

Last updated

about 2 months ago

docker pull hangyvv/rustdesk-server-s6