2022-04-20 21:36:57 +02:00
|
|
|
---
|
2022-05-06 12:23:31 +02:00
|
|
|
title: Synology
|
2022-04-20 21:36:57 +02:00
|
|
|
weight: 22
|
|
|
|
---
|
|
|
|
|
|
|
|
This tutorial is based on latest DSM v6.
|
|
|
|
|
|
|
|
### Install Docker
|
|
|
|
|
|
|
|
Open package manager and install docker
|
|
|
|
|
|
|
|
| | |
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
|
|
|
![](/docs/en/self-host/synogy/images/package-manager.png) | ![](/docs/en/self-host/synogy/images/docker.png)
|
|
|
|
|
|
|
|
|
|
|
|
### Install RustDesk Server
|
|
|
|
|
|
|
|
| Search rustdesk-server in Docker's registery and install by double click | Installed rustdesk-server image, double click to create rustdesk-server container |
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
|
|
|
![](/docs/en/self-host/synogy/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/synogy/images/rustdesk-server-installed.png)
|
|
|
|
|
|
|
|
|
|
|
|
### Create hbbs container
|
|
|
|
|
|
|
|
As mentioned above, double click on rustdesk-server image to create new container, set it name to `hbbs`.
|
2022-05-09 08:52:18 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/hbbs.png)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
Click on above "Advanced Settings".
|
|
|
|
|
|
|
|
- Enable auto-restart
|
2022-05-09 08:52:18 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/auto-restart.png)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
2022-04-20 21:42:25 +02:00
|
|
|
- Enable "Use the same network as Docker host", for more about host net, please [check](/docs/en/self-host/install/#net-host)
|
2022-05-09 08:52:18 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/host-net.png)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
- Mount a host directory (e.g. `Shared/test/`) to `/root`, hbbs's will generate some files in this directory
|
|
|
|
| Mount | Files generated in the host directory |
|
|
|
|
|-- | -- |
|
|
|
|
![](/docs/en/self-host/synogy/images/mount.png?width=500px) | ![](/docs/en/self-host/synogy/images/mounted-dir.png?width=300px)
|
|
|
|
|
|
|
|
- Set command
|
|
|
|
{{% notice note %}}
|
|
|
|
Synogy's OS is debain based, so host net (--net=host) works fine, we do not need to map ports with `-p` option.
|
|
|
|
|
|
|
|
`192.168.16.98` is an intranet ip used here for demonstration only, please set it to a public ip when you deploy.
|
|
|
|
|
|
|
|
{{% /notice %}}
|
|
|
|
|
2022-05-12 15:06:38 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/hbbs-cmd.png?v2)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
- Done
|
|
|
|
|
2022-05-09 08:52:18 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/hbbs-config.png)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
### Create hbbr container
|
|
|
|
|
|
|
|
Please repeat above `hbbs` steps, but change container name to `hbbr` and command to `hbbr -m demo`.
|
|
|
|
|
2022-05-09 08:52:18 +02:00
|
|
|
![](/docs/en/self-host/synogy/images/hbbr-config.png)
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
### hbbr/hbbs containers
|
|
|
|
|
|
|
|
![](/docs/en/self-host/synogy/images/containers.png?width=500px)
|
|
|
|
|
|
|
|
|
|
|
|
| Double click on container and check log | Double confirm hbbs/hbbr using host network |
|
|
|
|
|-- | -- |
|
|
|
|
![](/docs/en/self-host/synogy/images/log.png?width=500px) | ![](/docs/en/self-host/synogy/images/network-types.png?width=500px)
|
|
|
|
|