1
0

feat:调整openspeedtest的适配

This commit is contained in:
okxlin
2023-12-22 00:45:11 +08:00
parent 55aba30112
commit 8c14ccfb98
8 changed files with 89 additions and 41 deletions

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="openspeedtest"
PANEL_APP_PORT_HTTP="40188"
PANEL_APP_PORT_HTTPS="40189"

View File

@@ -0,0 +1,18 @@
additionalProperties:
formFields:
- default: 40188
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 40189
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: HTTPS Port
labelZh: HTTPS 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,17 @@
version: '3'
services:
speedtest:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3000
- ${PANEL_APP_PORT_HTTPS}:3001
image: openspeedtest/latest:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true