Files
compose-anything/mcp-servers/clickhouse/docker-compose.yaml
2026-02-23 17:41:05 +08:00

35 lines
885 B
YAML

x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
services:
mcp-clickhouse:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mcp/clickhouse:${MCP_CLICKHOUSE_VERSION:-latest}
environment:
- CLICKHOUSE_URL=${CLICKHOUSE_URL:-http://localhost:8123}
- CLICKHOUSE_USER=${CLICKHOUSE_USER:-default}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-}
- MCP_HOST=0.0.0.0
- TZ=${TZ:-UTC}
ports:
- '${MCP_CLICKHOUSE_PORT_OVERRIDE:-8000}:8000'
healthcheck:
test: [CMD, wget, --spider, -q, 'http://localhost:8000/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M