Fix health check to eliminate 404 errors
- Changed health check to only verify FalkorDB (redis-cli ping) - Removed non-existent /health endpoint check - MCP server startup is visible in logs - Container now runs without health check errors
This commit is contained in:
parent
7c5d885721
commit
8fb405521c
2 changed files with 4 additions and 3 deletions
|
|
@ -109,9 +109,10 @@ LABEL org.opencontainers.image.title="FalkorDB + Graphiti MCP Server" \
|
|||
# Expose ports
|
||||
EXPOSE 6379 3000 8000
|
||||
|
||||
# Health check for both services
|
||||
# Health check - verify FalkorDB is responding
|
||||
# MCP server startup is logged and visible in container output
|
||||
HEALTHCHECK --interval=10s --timeout=5s --start-period=15s --retries=3 \
|
||||
CMD redis-cli -p 6379 ping && curl -f http://localhost:8000/health || exit 1
|
||||
CMD redis-cli -p 6379 ping > /dev/null || exit 1
|
||||
|
||||
# Override the FalkorDB entrypoint and use our startup script
|
||||
ENTRYPOINT ["/start-services.sh"]
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ services:
|
|||
- "3000:3000" # FalkorDB web UI
|
||||
- "8000:8000" # MCP server HTTP
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "redis-cli -p 6379 ping && curl -f http://localhost:8000/health || exit 1"]
|
||||
test: ["CMD", "redis-cli", "-p", "6379", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue