1
0

feat:调整peerbanhelper

This commit is contained in:
okxlin
2024-09-23 00:07:31 +08:00
parent 0347747976
commit 339c528757
15 changed files with 236 additions and 76 deletions

View File

@@ -0,0 +1,7 @@
CONTAINER_NAME="peerbanhelper"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP=40294
PGID=0
PUID=0
STOP_GRACE_PERIOD="30s"
TIME_ZONE="Asia/Shanghai"

View File

@@ -0,0 +1,45 @@
additionalProperties:
formFields:
- default: "40294"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data"
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: "0"
edit: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: true
type: number
- default: "0"
edit: true
envKey: PGID
labelEn: Group ID
labelZh: 组 ID
required: true
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: "30s"
edit: true
envKey: STOP_GRACE_PERIOD
labelEn: Stop Grace Period
labelZh: 停止宽限期
required: true
type: text

View File

@@ -0,0 +1,21 @@
services:
peerbanhelper:
image: "registry.cn-hangzhou.aliyuncs.com/ghostchu/peerbanhelper:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:9898"
volumes:
- "${DATA_PATH}:/app/data"
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIME_ZONE}
stop_grace_period: ${STOP_GRACE_PERIOD}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true