fix(templates) Fixing MetaMCP template
This commit is contained in:
parent
327e8ae3c9
commit
ef89baf171
1 changed files with 17 additions and 18 deletions
|
|
@ -9,16 +9,14 @@ services:
|
||||||
app:
|
app:
|
||||||
container_name: metamcp
|
container_name: metamcp
|
||||||
image: 'ghcr.io/metatool-ai/metamcp:latest'
|
image: 'ghcr.io/metatool-ai/metamcp:latest'
|
||||||
ports:
|
|
||||||
- '12008:12008'
|
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_URL_METAMCP_12008
|
- SERVICE_URL_METAMCP_12008
|
||||||
- 'POSTGRES_HOST=${POSTGRES_HOST:?postgres}'
|
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
|
||||||
- 'POSTGRES_PORT=${POSTGRES_PORT:?5432}'
|
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
|
||||||
- 'POSTGRES_USER=${SERVICE_USER_DB}'
|
- POSTGRES_USER=${SERVICE_USER_DB}
|
||||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_DB}'
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||||
- 'POSTGRES_DB=${POSTGRES_DB:-metamcp_db}'
|
- POSTGRES_DB=${POSTGRES_DB:-metamcp_db}
|
||||||
- 'DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}'
|
||||||
- APP_URL=$SERVICE_URL_METAMCP
|
- APP_URL=$SERVICE_URL_METAMCP
|
||||||
- 'NEXT_PUBLIC_APP_URL=${APP_URL}'
|
- 'NEXT_PUBLIC_APP_URL=${APP_URL}'
|
||||||
- BETTER_AUTH_SECRET=$SERVICE_PASSWORD_AUTH
|
- BETTER_AUTH_SECRET=$SERVICE_PASSWORD_AUTH
|
||||||
|
|
@ -32,22 +30,23 @@ services:
|
||||||
- curl
|
- curl
|
||||||
- '-f'
|
- '-f'
|
||||||
- 'http://localhost:12008/health'
|
- 'http://localhost:12008/health'
|
||||||
interval: 30s
|
interval: 5s
|
||||||
timeout: 10s
|
timeout: 20s
|
||||||
|
retries: 10
|
||||||
postgres:
|
postgres:
|
||||||
image: 'postgres:16-alpine'
|
image: 'postgres:16-alpine'
|
||||||
container_name: metamcp-pg
|
container_name: metamcp-DB
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_DB=${POSTGRES_DB}'
|
- POSTGRES_DB=${POSTGRES_DB:-postgres}
|
||||||
- 'POSTGRES_USER=${POSTGRES_USER}'
|
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||||
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
|
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||||
ports:
|
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
|
||||||
- '9433:5432'
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'postgres_data:/var/lib/postgresql/data'
|
- 'postgres_data:/var/lib/postgresql/data'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD-SHELL
|
- CMD-SHELL
|
||||||
- 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'
|
- 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'
|
||||||
interval: 10s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 20s
|
||||||
|
retries: 10
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue