Merge pull request #418 from nOrphf/patch-1

Added info regarding environment in docker compose
This commit is contained in:
RustDesk 2024-07-23 08:38:44 +08:00 committed by GitHub
commit e71f6deaf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,3 +59,31 @@ services:
network_mode: "host"
restart: unless-stopped
```
If you need to make config changes e.g. set ALWAYS_USE_RELAY=Y you can use environment in the docker-compose.yml
```yaml
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
environment:
- ALWAYS_USE_RELAY=Y
command: hbbs
volumes:
- ./data:/root
network_mode: "host"
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
network_mode: "host"
restart: unless-stopped
```