1
0

feat:添加iperf到列表

This commit is contained in:
okxlin
2024-06-30 23:41:42 +08:00
parent 87f2017639
commit 0aeccefd22
6 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONTAINER_NAME="iperf"
IPERF_COMMAND="-s"
PANEL_APP_PORT_HTTP=40267
TIME_ZONE="Asia/Shanghai"

View File

@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: "40267"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: "-s"
edit: true
envKey: IPERF_COMMAND
labelEn: iPerf Command
labelZh: iPerf 命令
required: true
type: text

View File

@@ -0,0 +1,20 @@
services:
iperf:
image: "networkstatic/iperf3:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:5201"
environment:
- TZ=${TIME_ZONE}
command: ${IPERF_COMMAND}
stdin_open: true
tty: true
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true