Update metamcp.yaml: refine environment variables and healthcheck settings
This commit is contained in:
parent
24d85f7c96
commit
b0ee2d227a
1 changed files with 20 additions and 22 deletions
|
|
@ -1,26 +1,25 @@
|
|||
# documentation: https://github.com/metatool-ai/metamcp
|
||||
# slogan: MCP Aggregator, Orchestrator, Middleware, Gateway in one app
|
||||
# tags: mcp, ai, sse
|
||||
# tags: mcp, ai, sse, aggregator, orchestrator, middleware
|
||||
# category: mcp
|
||||
# logo: svgs/metamcp.png
|
||||
# port: 12008
|
||||
|
||||
services:
|
||||
app:
|
||||
container_name: metamcp
|
||||
image: 'ghcr.io/metatool-ai/metamcp:2.4'
|
||||
image: ghcr.io/metatool-ai/metamcp:2.4
|
||||
environment:
|
||||
- SERVICE_URL_METAMCP_12008
|
||||
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
|
||||
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
|
||||
- POSTGRES_USER=${SERVICE_USER_DB}
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-metamcp_db}
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
|
||||
- APP_URL=$SERVICE_URL_METAMCP
|
||||
- NEXT_PUBLIC_APP_URL=${APP_URL}
|
||||
- BETTER_AUTH_SECRET=$SERVICE_PASSWORD_AUTH
|
||||
- TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL=${TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL:?true}
|
||||
- DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-metamcp_db}
|
||||
- APP_URL=${SERVICE_URL_METAMCP}
|
||||
- NEXT_PUBLIC_APP_URL=${SERVICE_URL_METAMCP}
|
||||
- BETTER_AUTH_SECRET=${SERVICE_PASSWORD_AUTH}
|
||||
- TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL=${TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL:-true}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
|
@ -30,23 +29,22 @@ services:
|
|||
- curl
|
||||
- '-f'
|
||||
- 'http://localhost:12008/health'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
postgres:
|
||||
image: 'postgres:16-alpine'
|
||||
container_name: metamcp-DB
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
- POSTGRES_DB=${POSTGRES_DB:-postgres}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-metamcp_db}
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
volumes:
|
||||
- 'postgres_data:/var/lib/postgresql/data'
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
- 'pg_isready -U ${SERVICE_USER_POSTGRES} -d ${POSTGRES_DB:-metamcp_db}'
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
|
|||
Loading…
Reference in a new issue