From b62ccb669167223687a43d30d01f8cf9c8ba1c41 Mon Sep 17 00:00:00 2001 From: okxlin <61420215+okxlin@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:02:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E5=8F=AA=E9=9C=80?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E4=B8=80=E4=B8=AA=E5=AE=B9=E5=99=A8=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=9A=84rustdesk(s6)=20(#275)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/rustdesk/s6-latest/data.yml | 50 ++++++++++++++++++++++ apps/rustdesk/s6-latest/docker-compose.yml | 26 +++++++++++ 2 files changed, 76 insertions(+) create mode 100644 apps/rustdesk/s6-latest/data.yml create mode 100644 apps/rustdesk/s6-latest/docker-compose.yml diff --git a/apps/rustdesk/s6-latest/data.yml b/apps/rustdesk/s6-latest/data.yml new file mode 100644 index 00000000..92fbd1aa --- /dev/null +++ b/apps/rustdesk/s6-latest/data.yml @@ -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 diff --git a/apps/rustdesk/s6-latest/docker-compose.yml b/apps/rustdesk/s6-latest/docker-compose.yml new file mode 100644 index 00000000..49bb96c4 --- /dev/null +++ b/apps/rustdesk/s6-latest/docker-compose.yml @@ -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