Refactor: Reorganize services into standalone structure
This commit is contained in:
63
optimized/standalone/RustDesk/README.md
Normal file
63
optimized/standalone/RustDesk/README.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# RustDesk Server
|
||||
|
||||
This directory contains the `docker-compose.yml` for deploying the RustDesk hbbs (rendezvous) and hbbr (relay) servers. These servers facilitate peer-to-peer remote control connections.
|
||||
|
||||
## Running with Podman Compose
|
||||
|
||||
To run these services using `podman-compose`:
|
||||
|
||||
1. Navigate to this directory:
|
||||
```bash
|
||||
cd optimized/standalone/RustDesk
|
||||
```
|
||||
2. **Important**: Review and update the `--relay-servers` IP address in `hbbs` command and other environment variables in `hbbr` if necessary.
|
||||
3. Start the services:
|
||||
```bash
|
||||
podman-compose up -d
|
||||
```
|
||||
|
||||
## Running with Podman
|
||||
|
||||
You can run each RustDesk component directly with Podman.
|
||||
|
||||
**For `rustdesk-hbbs`:**
|
||||
|
||||
```bash
|
||||
podman run -d \
|
||||
--name rustdesk-hbbs \
|
||||
--restart unless-stopped \
|
||||
--platform linux/arm64 \
|
||||
-v rustdesk_data:/root \
|
||||
-p "21115:21115/tcp" \
|
||||
-p "21115:21115/udp" \
|
||||
-p "21116:21116/tcp" \
|
||||
-p "21116:21116/udp" \
|
||||
rustdesk/rustdesk-server:latest hbbs --relay-servers "192.168.1.245:21117"
|
||||
```
|
||||
|
||||
**For `rustdesk-hbbr`:**
|
||||
|
||||
```bash
|
||||
podman run -d \
|
||||
--name rustdesk-hbbr \
|
||||
--restart unless-stopped \
|
||||
--platform linux/arm64 \
|
||||
-v rustdesk_data:/root \
|
||||
-p "21117:21117/tcp" \
|
||||
-p "21118:21118/udp" \
|
||||
-p "21119:21119/tcp" \
|
||||
-p "21119:21119/udp" \
|
||||
-e TOTAL_BANDWIDTH=20480 \
|
||||
-e SINGLE_BANDWIDTH=128 \
|
||||
-e LIMIT_SPEED="100Mb/s" \
|
||||
-e DOWNGRADE_START_CHECK=600 \
|
||||
-e DOWNGRADE_THRESHOLD=0.9 \
|
||||
rustdesk/rustdesk-server:latest hbbr
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
* RustDesk servers are suitable for standalone deployment as they provide specific backend functionality for remote connections and don't inherently require Swarm orchestration for their core purpose.
|
||||
* Ensure the `rustdesk_data` volume is persistent for configuration and state.
|
||||
* Make sure the specified ports are open on your firewall.
|
||||
* The `--platform linux/arm64` is important if you are running on an ARM-based system.
|
||||
39
optimized/standalone/RustDesk/docker-compose.yml
Normal file
39
optimized/standalone/RustDesk/docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
rustdesk-hbbs:
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
container_name: rustdesk-hbbs
|
||||
restart: unless-stopped
|
||||
platform: linux/arm64
|
||||
command: ["hbbs", "--relay-servers", "192.168.1.245:21117"]
|
||||
volumes:
|
||||
- rustdesk_data:/root
|
||||
ports:
|
||||
- "21115:21115/tcp"
|
||||
- "21115:21115/udp"
|
||||
- "21116:21116/tcp"
|
||||
- "21116:21116/udp"
|
||||
|
||||
rustdesk-hbbr:
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
container_name: rustdesk-hbbr
|
||||
restart: unless-stopped
|
||||
platform: linux/arm64
|
||||
command: ["hbbr"]
|
||||
volumes:
|
||||
- rustdesk_data:/root
|
||||
ports:
|
||||
- "21117:21117/tcp"
|
||||
- "21118:21118/udp"
|
||||
- "21119:21119/tcp"
|
||||
- "21119:21119/udp"
|
||||
environment:
|
||||
- TOTAL_BANDWIDTH=20480
|
||||
- SINGLE_BANDWIDTH=128
|
||||
- LIMIT_SPEED=100Mb/s
|
||||
- DOWNGRADE_START_CHECK=600
|
||||
- DOWNGRADE_THRESHOLD=0.9
|
||||
|
||||
volumes:
|
||||
rustdesk_data:
|
||||
Reference in New Issue
Block a user