ソースを参照

Add 'compose.yml'

Automatic key generation: When you start the container for the first time, id_ed25519 (private key) and id_ed25519.pub (public key) will be automatically generated in the volume-mounted ./data folder.

Enforce: The -k _ argument is a flag that requires the public key to be verified upon connection.

Prevention of springboards: If you do not include this, third parties who know your server's IP and port can use your server as a relay.
Toshiki Higa 2ヶ月前
コミット
a5b624876f
1個のファイルの変更20行の追加0行の削除
  1. 20
    0
      compose.yml

+ 20
- 0
compose.yml ファイルの表示

@@ -0,0 +1,20 @@
1
+services:
2
+  hbbs:
3
+    container_name: hbbs
4
+    image: rustdesk/rustdesk-server:latest
5
+    # Specify your VPS IP or domain with -r and add -k _ at the end.
6
+    command: hbbs -r rustdesk.example.com:21117 -k _
7
+    volumes:
8
+      - ./data:/root
9
+    network_mode: host
10
+    restart: unless-stopped
11
+
12
+  hbbr:
13
+    container_name: hbbr
14
+    image: rustdesk/rustdesk-server:latest
15
+    # Also add -k _
16
+    command: hbbr -k _
17
+    volumes:
18
+      - ./data:/root
19
+    network_mode: host
20
+    restart: unless-stopped

読み込み中…
キャンセル
保存