Added info regarding environment in docker compose

This commit is contained in:
nOrphf 2024-07-22 23:06:32 +02:00 committed by GitHub
parent bd8d418b0c
commit a169905f50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,3 +59,31 @@ services:
network_mode: "host" network_mode: "host"
restart: unless-stopped 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
```