docker-compose.yml•1.56 kB
services:
open-webui:
env_file: .env
image: ghcr.io/open-webui/open-webui:main
container_name: mcp-ambari-api-open-webui
ports:
- "${DOCKER_EXTERNAL_PORT_OPENWEBUI}:8080"
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434
volumes:
- open-webui-data:/app/backend/data
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
mcp-server:
env_file: .env
image: call518/mcp-server-ambari-api:1.0.1
container_name: mcp-ambari-api-mcp-server
ports:
- "${DOCKER_EXTERNAL_PORT_MCP_SERVER}:8000" ### (WARNING) Must be same with port number of 'FASTMCP_PORT', 'mcp-config.json' and 'mcp-config.json.http'
volumes:
- ./src:/app/src/
- ./scripts:/app/scripts
- ./.env:/app/.env:ro
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 8000 && sleep 5"]
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
mcpo-proxy:
env_file: .env
image: call518/mcpo-proxy-ambari-api:1.0.3
container_name: mcp-ambari-api-mcpo-proxy
depends_on:
mcp-server:
condition: service_healthy
ports:
- "${DOCKER_EXTERNAL_PORT_MCPO_PROXY}:8000"
volumes:
- ./mcp-config.json.http:/app/config/mcp-config.json
- ./src:/app/src
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
volumes:
open-webui-data:
name: open-webui-data-mcp-ambari-api