Files
templates/blueprints/rustdesk/docker-compose.yml
Muzaffer Kadir YILMAZ 32da868c01 feat: improve RustDesk template configuration (#571)
* feat: improve RustDesk template configuration

- Add comprehensive environment variables for RustDesk server
- Add RELAY_HOST, API_SERVER, ID_SERVER, and ENCRYPTION_KEY variables
- Follow Dokploy best practices (no container_name, proper port format)
- Use restart: unless-stopped policy
- Add encryption key generation with password helper

* fix: use explicit port mapping for RustDesk services

RustDesk requires explicit port bindings (host:container format) to function properly. The service uses specific ports for:
- 21115-21116 (TCP/UDP): hbbs service for ID and NAT traversal
- 21117-21119 (TCP): hbbr relay service

Without explicit port mapping, RustDesk clients cannot establish connections to the server.

This is an exception to Dokploy's general port guidelines due to RustDesk's specific networking requirements.

---------

Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
2025-12-14 23:23:05 -06:00

28 lines
501 B
YAML

services:
hbbs:
image: rustdesk/rustdesk-server:latest
command: hbbs
restart: unless-stopped
volumes:
- rustdesk-data:/root
ports:
- "21115:21115"
- "21116:21116"
- "21116:21116/udp"
depends_on:
- hbbr
hbbr:
image: rustdesk/rustdesk-server:latest
command: hbbr
restart: unless-stopped
volumes:
- rustdesk-data:/root
ports:
- "21117:21117"
- "21118:21118"
- "21119:21119"
volumes:
rustdesk-data: