1
0

feat:添加proxy_pool到列表

This commit is contained in:
okxlin
2024-06-30 23:45:47 +08:00
parent a3afb9437e
commit 2cf815cd09
6 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
CONTAINER_NAME="proxy_pool"
PANEL_APP_PORT_HTTP=40264
PANEL_REDIS_ROOT_PASSWORD="redis_password"
REDIS_DB_NUMBER=7
REDIS_HOST="redis"
REDIS_PORT=6379

View File

@@ -0,0 +1,40 @@
additionalProperties:
formFields:
- default: 40264
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: REDIS_HOST
key: redis
labelEn: Redis Host
labelZh: Redis 主机
required: true
type: service
- default: 6379
edit: true
envKey: REDIS_PORT
labelEn: Redis Port
labelZh: Redis 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: PANEL_REDIS_ROOT_PASSWORD
labelEn: Redis Password
labelZh: Redis 密码
required: false
type: password
- default: 7
edit: true
envKey: REDIS_DB_NUMBER
labelEn: Redis Database Number
labelZh: Redis 数据库编号
required: true
type: number

View File

@@ -0,0 +1,17 @@
services:
proxy_pool:
image: "jhao104/proxy_pool:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:5010"
environment:
- "DB_CONN=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB_NUMBER}"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true