For this installation, we need the following prerequisites:
Let's start with the following:
mkdir docker -p && mkdir docker/rustdesk -p && cd docker/rustdesk
Now via Portainer or docker-compose CLI, you can create your stack by using the YML file with the content below:
nano 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 <your-cool.server.com>:21117
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
volumes:
- ./hbbr:/root
networks:
- rustdesk-net
restart: unless-stopped
docker-compose up -d
Almost done, just need to open the below ports on your FW and use <your-cool.server.com>as a server ID when you are using any Rustdesk client version.
ports:
- 21115:21115
- 21116:21116
- 21116:21116/udp
- 21118:21118
You can download all the versions of the Rustdesk client by clicking here.
If you want to know how it's working also for more info please watch my Video on youtube.
Note: How do I keep others from using my RustDesk server?
For more information you can visit their GitHub page.