feat:添加只需运行一个容器版本的rustdesk(s6) (#275)

This commit is contained in:
okxlin 2023-08-03 11:02:49 +08:00 committed by GitHub
parent 2a28e85c32
commit b62ccb6691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,50 @@
additionalProperties:
formFields:
- default: 21115
edit: true
envKey: NAT_TEST_PORT
labelEn: NAT type test port
labelZh: NAT类型测试端口
required: true
rule: paramPort
type: number
- default: 21116
edit: true
envKey: HBBS_PORT
labelEn: hbbs port (used with IP/domain)
labelZh: hbbs端口(配合IP/域名使用)
required: true
rule: paramPort
type: number
- default: 21117
edit: true
envKey: HBBR_PORT
labelEn: hbbr port (client relay server port)
labelZh: hbbr端口(客户端中继服务器端口)
required: true
rule: paramPort
type: number
- default: 21118
edit: true
envKey: WEB_CLIENT_PORT1
labelEn: Web Client Support Port 1
labelZh: 网页客户端支持端口1
required: true
rule: paramPort
type: number
- default: 21119
edit: true
envKey: WEB_CLIENT_PORT2
labelEn: Web Client Support Port 2
labelZh: 网页客户端支持端口2
required: true
rule: paramPort
type: number
- default: 172.17.0.1
edit: true
envKey: HOST_ADDRESS
labelEn: IP address or domain name (must change item)
labelZh: IP地址或域名(必改项)
required: true
rule: paramCommon
type: text

View File

@ -0,0 +1,26 @@
version: '3'
services:
rustdesk-server:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${NAT_TEST_PORT}:21115"
- "${HBBS_PORT}:21116"
- "${HBBS_PORT}:21116/udp"
- "${HBBR_PORT}:21117"
- "${WEB_CLIENT_PORT1}:21118"
- "${WEB_CLIENT_PORT2}:21119"
volumes:
- "./data/hbbs:/data"
environment:
- "RELAY=${HOST_ADDRESS}:${HBBR_PORT}"
- "ENCRYPTED_ONLY=1"
image: rustdesk/rustdesk-server-s6:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true