Repository navigation
Expand file tree
/
Copy pathrustdesk-server.yml
More file actions
53 lines (51 loc) · 1.5 KB
/
Copy pathrustdesk-server.yml
File metadata and controls
53 lines (51 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
hbbs:
container_name: rustdesk-hbbs
image: rustdesk/rustdesk-server:latest # imagem multi-arch: puxa arm64 no Oracle Ampere A1
command: hbbs -r ${RUSTDESK_RELAY_HOST}:21117 -k _
environment:
- TZ=America/Sao_Paulo
ports:
- "21115:21115" # TCP teste de tipo de NAT
- "21116:21116" # TCP hole punching / conexão
- "21116:21116/udp" # UDP registro de ID e heartbeat (PRECISA de TCP E UDP)
- "21118:21118" # TCP WebSocket do hbbs (web client; só se for usar navegador)
volumes:
- /srv/rustdesk/data:/root # id_ed25519(.pub) + db_v2.sqlite3 (workdir da imagem = /root)
networks:
- rustdesk-net
security_opt:
- no-new-privileges:true
depends_on:
- hbbr
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
hbbr:
container_name: rustdesk-hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr -k _
environment:
- TZ=America/Sao_Paulo
ports:
- "21117:21117" # TCP relay
- "21119:21119" # TCP WebSocket do hbbr (web client; só se for usar navegador)
volumes:
- /srv/rustdesk/data:/root
networks:
- rustdesk-net
security_opt:
- no-new-privileges:true
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
rustdesk-net:
name: rustdesk-net
driver: bridge