83 lines
2.4 KiB
YAML
83 lines
2.4 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-rmcp}
|
|
POSTGRES_USER: ${POSTGRES_USER:-rmcp}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rmcp}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rmcp} -d ${POSTGRES_DB:-rmcp}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
admin-api:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/admin-api/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
MCPAAS_DATABASE_URL: ${MCPAAS_DATABASE_URL:-postgres://rmcp:rmcp@postgres:5432/rmcp}
|
|
MCPAAS_STORAGE_ROOT: ${MCPAAS_STORAGE_ROOT:-/var/lib/rmcp/storage}
|
|
MCPAAS_ADMIN_BIND: ${MCPAAS_ADMIN_BIND:-0.0.0.0:3001}
|
|
MCPAAS_LOG_LEVEL: ${MCPAAS_LOG_LEVEL:-info}
|
|
MCPAAS_SECRET_PROVIDER: ${MCPAAS_SECRET_PROVIDER:-env}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
volumes:
|
|
- artifact_storage:${MCPAAS_STORAGE_ROOT:-/var/lib/rmcp/storage}
|
|
ports:
|
|
- "127.0.0.1:3001:3001"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:3001/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
mcp-server:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/mcp-server/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
MCPAAS_DATABASE_URL: ${MCPAAS_DATABASE_URL:-postgres://rmcp:rmcp@postgres:5432/rmcp}
|
|
MCPAAS_STORAGE_ROOT: ${MCPAAS_STORAGE_ROOT:-/var/lib/rmcp/storage}
|
|
MCPAAS_MCP_BIND: ${MCPAAS_MCP_BIND:-0.0.0.0:3002}
|
|
MCPAAS_LOG_LEVEL: ${MCPAAS_LOG_LEVEL:-info}
|
|
MCPAAS_SECRET_PROVIDER: ${MCPAAS_SECRET_PROVIDER:-env}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
volumes:
|
|
- artifact_storage:${MCPAAS_STORAGE_ROOT:-/var/lib/rmcp/storage}
|
|
ports:
|
|
- "127.0.0.1:3002:3002"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:3002/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
ui:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/ui/Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres_data:
|
|
artifact_storage:
|