feat(docker-compose.yml): remove healthcheck

This commit is contained in:
Claude
2026-06-24 18:23:15 +08:00
parent ce8dc1e2ba
commit 504447048d
+3 -12
View File
@@ -15,12 +15,12 @@
# http://localhost:8000/spark-executor-mcp (initialize -> tools/list -> tools/call) # http://localhost:8000/spark-executor-mcp (initialize -> tools/list -> tools/call)
services: services:
spark-executor-mcp: mcp-server:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: spark-executor-mcp:latest image: mcp-server:latest
container_name: spark-executor-mcp container_name: mcp-tools
restart: unless-stopped restart: unless-stopped
@@ -48,15 +48,6 @@ services:
# Read-only so the running container cannot mutate cluster config. # Read-only so the running container cannot mutate cluster config.
- ./hadoop-conf:/etc/hadoop/conf:ro - ./hadoop-conf:/etc/hadoop/conf:ro
healthcheck:
# The MCP endpoint requires an initialize handshake for real liveness;
# /openapi.json (the main app's spec) is a cheap proxy for "process up".
# Replace with a /health route once added to main.py (see note below).
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/openapi.json', timeout=5).raise_for_status()"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
# No resource limits — spark-submit talks to YARN, which does the actual # No resource limits — spark-submit talks to YARN, which does the actual
# heavy lifting. The MCP server itself is lightweight (FastAPI + httpx). # heavy lifting. The MCP server itself is lightweight (FastAPI + httpx).