feat:添加iperf到列表
This commit is contained in:
4
apps/iperf/latest/.env.sample
Normal file
4
apps/iperf/latest/.env.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
CONTAINER_NAME="iperf"
|
||||
IPERF_COMMAND="-s"
|
||||
PANEL_APP_PORT_HTTP=40267
|
||||
TIME_ZONE="Asia/Shanghai"
|
||||
24
apps/iperf/latest/data.yml
Normal file
24
apps/iperf/latest/data.yml
Normal 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
|
||||
20
apps/iperf/latest/docker-compose.yml
Normal file
20
apps/iperf/latest/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user