First, Follow the following 4 guides:
Lets Begin
/docker/projects/rustdesk-compose
/docker/rustdesk
Container Setup
Next we are going to set up a ‘Project’ in Container Manager. Open up Container Manager and click on Project, then on the right-hand side click ‘Create’.In the next screen we will set up our General Settings.
Section |
Setting |
Project Name: |
rustdesk |
Path: |
/docker/projects/rustdesk-compose |
Source: |
Create
docker-compose.yml |
Next we are going to drop in our docker compose configuration, copy all the code in the box below and paste it into line ‘1’
You will see notes saying #change me we will do this on the next step, and you can remove the comments if you wish. Don't hit Next after pasting.
services:
rustdeskhbbs:
image: rustdesk/rustdesk-server:latest
container_name: rustdeskhbbs
command: hbbs -r rustdesk.example.com:21117 #CHANGE_TO_YOUR_ADDRESS
environment:
- PUID=1234 #CHANGE_TO_YOUR_UID
- PGID=65432 #CHANGE_TO_YOUR_GID
- TZ=Europe/London #CHANGE_TO_YOUR_TZ
- UMASK=022
volumes:
- /volume1/docker/rustdesk:/root
ports:
- 21115:21115
- 21116:21116
- 21116:21116/udp
- 21118:21118
network_mode: synobridge
security_opt:
- no-new-privileges:true
restart: always
rustdeskhbbr:
image: rustdesk/rustdesk-server:latest
container_name: rustdeskhbbr
command: hbbr -k _
environment:
- PUID=1234 #CHANGE_TO_YOUR_UID
- PGID=65432 #CHANGE_TO_YOUR_GID
- TZ=Europe/London #CHANGE_TO_YOUR_TZ
- UMASK=022
volumes:
- /volume1/docker/rustdesk:/root
ports:
- 21117:21117
- 21119:21119
network_mode: synobridge
security_opt:
- no-new-privileges:true
restart: always
Editing the Compose & Environment Variables
Please keep in mind that yaml formatting is very specific, so keep things lined up as per the original.
We need to make some minor edits to the compose file in order to make sure the containers use the ‘dockerlimited’ user we created earlier and also let them know which timezone we are located. You will need to edit these in each section noted with ‘#change me’
Variable | Value |
---|---|
PUID= | Change it to the UID you obtained earlier in the first setup guides |
PGID= | Change it to the GID you obtained earlier in the first setup guides |
TZ= | You will need to change this line to your own timezone code – you can find the correct list of ones to use on wikipedia.org/wiki/List_of_tz_database_time_zones |
command: hbbs -r | Change to your external IP / Hostname or DDNS that you have setup |
Once you have made all your required edits click ‘Next’
Nothing to change on the next screen click ‘Next’ again.
This can take a couple of minutes to finish as all the images are downloaded and extracted. You should see ‘Code 0’ when it has finished.
Once finished you will see the Project is running with a green status.
Finally, you need to find out what your Public Key is. The Public Key is used to authenticate clients.
Using File Station, navigate to the rustdesk folder you created. There will be a file ending in .PUB. It contains your Public Key. Copy this key to a safe place, you will need to enter it into each RustDesk client you want to use.
Client Setup
This will open the Settings Window. Click on Network. Then click Unlock Network Settings
In the ID Server field, put your external IP / Hostname or DDNS that you have setup. In the Key field, put the Public Key from the PUB file.
Hit Apply, and you are done. Close the settings window. RustDesk is ready to be used.
Hardcoding the ID Server and Public Key
External Access
Make sure you Forward TCP Ports 21115-21119, and UDP port 21116 on your firewall to your SAN.
Firewall
If you have enabled the Firewall on your Synology SAN, you will need to open port TCP Ports 21115-21119, and UDP port 21116.
Comments
Post a Comment