1
0

feat:添加speedtest-x到列表

This commit is contained in:
okxlin
2024-01-05 14:17:56 +08:00
parent a758483f05
commit 8ca6f568d5
6 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
CONTAINER_NAME="speedtest-x"
PANEL_APP_PORT_HTTP="40190"
MAX_LOG_COUNT="100"
IP_SERVICE="ipinfo.io"
SAME_IP_MULTI_LOGS="false"

View File

@@ -0,0 +1,31 @@
additionalProperties:
formFields:
- default: 40190
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: 100
edit: true
envKey: MAX_LOG_COUNT
labelEn: Maximum results size
labelZh: 测速结果数量
required: true
type: text
- default: ipinfo.io
edit: true
envKey: IP_SERVICE
labelEn: IP info provider (ip.sb / ipinfo.io)
labelZh: 使用的 IP 运营商解析服务 (ip.sb / ipinfo.io)
required: true
type: text
- default: "false"
edit: true
envKey: SAME_IP_MULTI_LOGS
labelEn: Same IP multi speed test results (true / false)
labelZh: 是否允许同一 IP 记录多条测速结果 (true / false)
required: true
type: text

View File

@@ -0,0 +1,21 @@
version: '3'
services:
speedtest-x:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
environment:
- WEBPORT=${PANEL_APP_PORT_HTTP}
- MAX_LOG_COUNT=${MAX_LOG_COUNT}
- IP_SERVICE=${IP_SERVICE}
- SAME_IP_MULTI_LOGS=${SAME_IP_MULTI_LOGS}
image: badapple9/speedtest-x:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true