feat: update app MetaMCP 2.4.10

This commit is contained in:
arch3rPro
2025-08-25 07:52:27 +00:00
parent 5207edb0df
commit b63775f371
4 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,87 @@
additionalProperties:
formFields:
- default: 12008
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
label:
en: Web Port
zh: HTTP 端口
- default: metamcp_db
envKey: POSTGRES_DB
labelEn: Database
labelZh: 数据库名
required: true
rule: paramCommon
type: text
label:
en: Database
zh: 数据库名
- default: metamcp_user
envKey: POSTGRES_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
label:
en: User
zh: 数据库用户
- default: m3t4mcp
envKey: POSTGRES_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
label:
en: Password
zh: 数据库用户密码
- default: "http://localhost:12008"
envKey: APP_URL
labelEn: Application URL
labelZh: 应用访问地址
required: true
type: text
label:
en: Application URL
zh: 应用访问地址
- default: "http://localhost:12008"
envKey: NEXT_PUBLIC_APP_URL
labelEn: Public Application URL
labelZh: 公共应用访问地址
required: true
type: text
label:
en: Public Application URL
zh: 公共应用访问地址
- default: "your-super-secret-key-change-this-in-production"
envKey: BETTER_AUTH_SECRET
labelEn: Auth Secret
labelZh: 认证密钥
random: true
required: true
rule: paramComplexity
type: password
label:
en: Auth Secret
zh: 认证密钥
- default: "true"
envKey: TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL
labelEn: Transform Localhost
labelZh: 转换本地主机
required: true
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
label:
en: Transform Localhost
zh: 转换本地主机

View File

@@ -0,0 +1,56 @@
version: '3'
services:
app:
container_name: ${CONTAINER_NAME}
image: ghcr.io/metatool-ai/metamcp:2.4.10
pull_policy: always
ports:
- ${PANEL_APP_PORT_HTTP}:12008
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
APP_URL: ${APP_URL}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL}
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL: ${TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL}
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
postgres:
condition: service_healthy
restart: always
networks:
- 1panel-network
volumes:
- ./data:/app/data
labels:
createdBy: Apps
postgres:
image: postgres:16-alpine
container_name: ${CONTAINER_NAME}-pg
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
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
networks:
- 1panel-network
labels:
createdBy: Apps
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,35 @@
NODE_ENV=production
# Postgres connection details
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=metamcp_user
POSTGRES_PASSWORD=m3t4mcp
POSTGRES_DB=metamcp_db
# Database configuration (composed from above vars)
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
# Application URL configuration
# This is the public URL where your application will be accessible
APP_URL=http://localhost:12008
NEXT_PUBLIC_APP_URL=http://localhost:12008
# Auth configuration
BETTER_AUTH_SECRET=your-super-secret-key-change-this-in-production
# OIDC Provider Configuration (Optional)
# Uncomment and configure these variables to enable OpenID Connect authentication
# Required for OIDC:
# OIDC_CLIENT_ID=your-oidc-client-id
# OIDC_CLIENT_SECRET=your-oidc-client-secret
# OIDC_DISCOVERY_URL=https://your-oidc-provider.com/.well-known/openid-configuration
# OIDC_AUTHORIZATION_URL=https://your-oidc-provider.com/auth
# Optional OIDC Configuration:
# OIDC_PROVIDER_ID=oidc
# OIDC_SCOPES=openid email profile
# OIDC_PKCE=true
# Docker networking fix
TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL=true