Merge pull request #388 from Games-Crack/master

Update Compose Docs
This commit is contained in:
RustDesk 2024-05-18 08:21:15 +08:00 committed by GitHub
commit 6548714a6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 15 additions and 27 deletions

View File

@ -34,10 +34,8 @@ Sie können die Protokolle mit `docker logs hbbs` ansehen, wenn sie mit `-td` ni
{{% /notice %}} {{% /notice %}}
#### Docker Compose-Beispiele #### Docker Compose-Beispiele
Um die Dockerdateien mit `docker-compose.yml` wie hier beschrieben ausführen zu können, müssen Sie [Docker Compose](https://docs.docker.com/compose/) installiert haben. Um die Dockerdateien mit `compose.yml` wie hier beschrieben ausführen zu können, müssen Sie [Docker Compose](https://docs.docker.com/compose/) installiert haben.
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs:
container_name: hbbs container_name: hbbs

View File

@ -34,9 +34,8 @@ If you can not see logs with `-td`, you can see logs via `docker logs hbbs`. Or
{{% /notice %}} {{% /notice %}}
#### Docker Compose examples #### Docker Compose examples
For running the Docker files with the `docker-compose.yml` as described here you need to have [Docker Compose](https://docs.docker.com/compose/) installed. For running the Docker files with the `compose.yml` as described here you need to have [Docker Compose](https://docs.docker.com/compose/) installed.
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs:

View File

@ -58,10 +58,9 @@ Si `--net=host` fonctionne , l'option `-p` ne sera pas utile. Pour windows, omet
{{% /notice %}} {{% /notice %}}
### Exemples avec Docker-Compose ### Exemples avec Docker-Compose
Pour exécuter les fichiers docker avec docker-compose.yml comme ci-dessous, vous devez avoir [**docker-compose**] (https://docs.docker.com/compose/) d'installé. Pour exécuter les fichiers docker avec compose.yml comme ci-dessous, vous devez avoir [**docker-compose**] (https://docs.docker.com/compose/) d'installé.
```yaml ```yaml
version: '3'
networks: networks:
rustdesk-net: rustdesk-net:

View File

@ -56,9 +56,8 @@ Als `--net=host` goed werkt, worden de `-p` opties niet gebruikt. Indien op Wind
{{% /notice %}} {{% /notice %}}
### Docker-Compose voorbeelden ### Docker-Compose voorbeelden
Voor het uitvoeren van de dockerbestanden met de docker-compose.yml zoals hier beschreven heb je [**docker-compose**](https://docs.docker.com/compose/) nodig en werkende. Voor het uitvoeren van de dockerbestanden met de compose.yml zoals hier beschreven heb je [**docker-compose**](https://docs.docker.com/compose/) nodig en werkende.
```yaml ```yaml
version: '3'
networks: networks:
rustdesk-net: rustdesk-net:

View File

@ -71,7 +71,6 @@ sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v `pwd`:/root -td --n
##### Docker Compose ##### Docker Compose
```yaml ```yaml
version: '3'
networks: networks:
rustdesk-net: rustdesk-net:

View File

@ -28,7 +28,7 @@ Nach der Installation von "Container Manager" wird ein gemeinsamer Ordner `docke
Öffnen Sie Ihren Container Manager, gehen Sie zu Project und klicken Sie auf Create. Öffnen Sie Ihren Container Manager, gehen Sie zu Project und klicken Sie auf Create.
Geben Sie den Projektnamen `rustdesk-server` ein, ändern Sie Source von "Upload docker-compose.yml" zu "Create docker-compose.yml" und kopieren Sie den folgenden Inhalt in das Feld. Danach sollten Sie `rustdesk.example.com` (die auf Ihre `hbbr` verweist) durch die Domain ersetzen, die auf Ihr NAS verweist. Geben Sie den Projektnamen `rustdesk-server` ein, ändern Sie Source von "Upload compose.yml" zu "Create compose.yml" und kopieren Sie den folgenden Inhalt in das Feld. Danach sollten Sie `rustdesk.example.com` (die auf Ihre `hbbr` verweist) durch die Domain ersetzen, die auf Ihr NAS verweist.
{{% notice note %}} {{% notice note %}}
Sie könnten die Zeile mit `hbbs` vorübergehend in die LAN-IP Ihres NAS ändern, wie auf dem Bild gelb markiert zu sehen. Nachdem Sie sich vergewissert haben, dass Ihr Server funktioniert, **sollten** Sie die Änderung zurücknehmen. Sie könnten die Zeile mit `hbbs` vorübergehend in die LAN-IP Ihres NAS ändern, wie auf dem Bild gelb markiert zu sehen. Nachdem Sie sich vergewissert haben, dass Ihr Server funktioniert, **sollten** Sie die Änderung zurücknehmen.
@ -37,7 +37,6 @@ Sie könnten die Zeile mit `hbbs` vorübergehend in die LAN-IP Ihres NAS ändern
![](images/dsm7_creating_project_init.png) ![](images/dsm7_creating_project_init.png)
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs:
container_name: hbbs container_name: hbbs

View File

@ -28,7 +28,7 @@ Open your File Station, create a folder named `rustdesk-server`(or whatever you
Open your Container Manager, go to Project and click Create. Open your Container Manager, go to Project and click Create.
Enter the project name `rustdesk-server` and change Source from "Upload docker-compose.yml" to "Create docker-compose.yml", and copy following contents to the box. After you copied, you should replace `rustdesk.example.com` (Which point to your `hbbr`) to the domain that will point to your NAS. Enter the project name `rustdesk-server` and change Source from "Upload compose.yml" to "Create compose.yml", and copy following contents to the box. After you copied, you should replace `rustdesk.example.com` (Which point to your `hbbr`) to the domain that will point to your NAS.
{{% notice note %}} {{% notice note %}}
You could modify the line with `hbbs` to your NAS's LAN IP temporarily just like the picture. After you verify your server is working, you **should** change back. You could modify the line with `hbbs` to your NAS's LAN IP temporarily just like the picture. After you verify your server is working, you **should** change back.
@ -37,7 +37,6 @@ You could modify the line with `hbbs` to your NAS's LAN IP temporarily just like
![](images/dsm7_creating_project_init.png) ![](images/dsm7_creating_project_init.png)
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs:
container_name: hbbs container_name: hbbs

View File

@ -26,7 +26,7 @@ Container Manager 為部分低階的 ARM64 的機型帶來支援,例如 j 系
打開您的 Container Manager前往專案並點擊新增。 打開您的 Container Manager前往專案並點擊新增。
輸入您的專案名稱 `rustdesk-server` 然後變更來源從"上傳 docker-compose.yml" 至 "建立 docker-compose.yml",接著複製下方內容到框框,在您複製貼上後,您應該將 `rustdesk.example.com` (它該指向到您的 `hbbr`) 改為會指向至您NAS的網域。 輸入您的專案名稱 `rustdesk-server` 然後變更來源從"上傳 compose.yml" 至 "建立 compose.yml",接著複製下方內容到框框,在您複製貼上後,您應該將 `rustdesk.example.com` (它該指向到您的 `hbbr`) 改為會指向至您NAS的網域。
{{% notice note %}} {{% notice note %}}
如圖所示,您可以暫時將 `hbbs` 那行改為指向至您的NAS的 LAN IP在您驗證您的伺服器可以正常運作後您**應當**變更回來。 如圖所示,您可以暫時將 `hbbs` 那行改為指向至您的NAS的 LAN IP在您驗證您的伺服器可以正常運作後您**應當**變更回來。
@ -35,7 +35,6 @@ Container Manager 為部分低階的 ARM64 的機型帶來支援,例如 j 系
![](images/dsm7_creating_project_init.png) ![](images/dsm7_creating_project_init.png)
````yaml ````yaml
version: '3'
services: services:
hbbs: hbbs:
container_name: hbbs container_name: hbbs

View File

@ -2,5 +2,5 @@
title: Ubuntu Server title: Ubuntu Server
weight: 30 weight: 30
--- ---
In Ubuntu Server, you have two method to deplay RustDesk Server, Docker or nornal `.deb` installation, Docker is more recommend for unexperienced users, because you could just copy the `docker-compose.yml`, and do some modify and you good to go! In Ubuntu Server, you have two method to deplay RustDesk Server, Docker or nornal `.deb` installation, Docker is more recommend for unexperienced users, because you could just copy the `compose.yml`, and do some modify and you good to go!
{{% children depth="3" showhidden="true" %}} {{% children depth="3" showhidden="true" %}}

View File

@ -162,11 +162,11 @@ sudo rm /swap.img
cd ~ && mkdir -p docker/rustdesk-server/data cd ~ && mkdir -p docker/rustdesk-server/data
``` ```
2. Create `docker-compose.yml` 2. Create `compose.yml`
Right click `rustdesk-server` folder, create new file named `docker-compose.yml` Right click `rustdesk-server` folder, create new file named `compose.yml`
Paste this to `docker-compose.yml`. Paste this to `compose.yml`.
After you copied, you should replace `rustdesk.example.com` (Which point to your hbbr) to the domain that will point to your server. After you copied, you should replace `rustdesk.example.com` (Which point to your hbbr) to the domain that will point to your server.
@ -177,7 +177,6 @@ You could modify the line with `hbbs` to your server's LAN IP temporarily (If y
Having problem after you changed LAN IP to domain? You should check [this article](/docs/en/self-host/nat-loopback-issues/). Having problem after you changed LAN IP to domain? You should check [this article](/docs/en/self-host/nat-loopback-issues/).
{{% /notice %}} {{% /notice %}}
```yml ```yml
version: '3'
services: services:
hbbs: hbbs:
container_name: hbbs container_name: hbbs
@ -239,7 +238,7 @@ Open these required ports:
* `21118/21119` TCP for web socket if you want to run web client * `21118/21119` TCP for web socket if you want to run web client
## 6. Some basics ## 6. Some basics
1. How to apply the settings after you modified `docker-compose.yml`? 1. How to apply the settings after you modified `compose.yml`?
Run this again: Run this again:
``` ```
@ -265,7 +264,7 @@ Drag and drop them to VSCode Explorer if you want to upload it.
Use [Watchtower](https://containrrr.dev/watchtower/). Use [Watchtower](https://containrrr.dev/watchtower/).
Create folder and put the `docker-compose.yml` in it. Create folder and put the `compose.yml` in it.
``` ```
mkdir ~/docker/watchtower mkdir ~/docker/watchtower

View File

@ -30,10 +30,9 @@ sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v ./data:/root -td --
Mit Docker Compose MÜSSEN Sie `network_mode: "host"` verwenden, um sicherzustellen, dass die Lizenzierung funktioniert. Installieren Sie Docker mit dieser [Anleitung](https://docs.docker.com/engine/install), um sicherzustellen, dass es auf dem neuesten Stand ist! Mit Docker Compose MÜSSEN Sie `network_mode: "host"` verwenden, um sicherzustellen, dass die Lizenzierung funktioniert. Installieren Sie Docker mit dieser [Anleitung](https://docs.docker.com/engine/install), um sicherzustellen, dass es auf dem neuesten Stand ist!
Kopieren Sie den folgenden Text in die Datei `docker-compose.yml`. Kopieren Sie den folgenden Text in die Datei `compose.yml`.
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs:

View File

@ -30,10 +30,9 @@ sudo docker run --name hbbr -p 21117:21117 -p 21119:21119 -v ./data:/root -td --
With Docker Compose you HAVE to use `network_mode: "host"` to ensure licensing works. Install Docker using this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date! With Docker Compose you HAVE to use `network_mode: "host"` to ensure licensing works. Install Docker using this [guide](https://docs.docker.com/engine/install) to ensure its the most up to date!
Copy the below into `docker-compose.yml`. Copy the below into `compose.yml`.
```yaml ```yaml
version: '3'
services: services:
hbbs: hbbs: