feat: update mcphub 1.0.7

This commit is contained in:
arch3rPro
2026-05-29 03:36:25 +08:00
parent 8486c8a545
commit edd4fb9ce1
4 changed files with 2 additions and 4 deletions
+58
View File
@@ -0,0 +1,58 @@
additionalProperties:
formFields:
- default: 3000
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
required: true
rule: paramPort
type: number
edit: true
label:
en: Web Port
zh: Web 端口
- default: ""
envKey: ADMIN_PASSWORD
labelEn: Admin Password
labelZh: 管理员密码
required: false
rule: paramComplexity
type: password
edit: true
label:
en: Admin Password
zh: 管理员密码
- default: mcphub_db
envKey: POSTGRES_DB
labelEn: Database
labelZh: 数据库名
required: true
rule: paramCommon
type: text
edit: true
label:
en: Database
zh: 数据库名
- default: mcphub_user
envKey: POSTGRES_USER
labelEn: Database User
labelZh: 数据库用户
required: true
rule: paramCommon
type: text
edit: true
label:
en: Database User
zh: 数据库用户
- default: ""
envKey: POSTGRES_PASSWORD
labelEn: Database Password
labelZh: 数据库密码
random: true
required: true
rule: paramComplexity
type: password
edit: true
label:
en: Database Password
zh: 数据库密码
View File
+47
View File
@@ -0,0 +1,47 @@
services:
mcphub:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- ./data:/app/data
environment:
- TZ=Asia/Shanghai
- PORT=3000
- NODE_ENV=production
- TRUST_PROXY=1
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
depends_on:
postgres:
condition: service_healthy
image: samanhappy/mcphub:1.0.7
labels:
createdBy: "Apps"
postgres:
image: pgvector/pgvector:pg17
container_name: ${CONTAINER_NAME}-pg
restart: always
networks:
- 1panel-network
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=Asia/Shanghai
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true