Files
lzwlab_cn/rustdesk/docker-compose.yml
T

29 lines
957 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RustDesk 自建服务器(OSS 版)Docker Compose 配置
# 参考:https://rustdesk.com/docs/zh-cn/self-host/rustdesk-server-oss/docker/
# 使用 host 网络,监听端口(防火墙需放行):
# hbbs21114/TCP(仅 Pro 需要)、21115/TCPNAT 类型测试)、21116/TCP+UDPID 注册/心跳与打洞)
# hbbr21117/TCP(中继)、21119/TCP(网页客户端)
# 网页客户端支持端口:21118/TCPhbbs)、21119/TCPhbbr
# 密钥与数据保存在 ./data(容器内 /root):id_ed25519、id_ed25519.pub
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
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