fix health checks

This commit is contained in:
mruwnik 2025-11-03 22:53:19 +00:00
parent ad6510bd17
commit 470061bd43
2 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,7 @@ services:
- /var/tmp - /var/tmp
- /qdrant/snapshots:rw - /qdrant/snapshots:rw
healthcheck: healthcheck:
test: [ "CMD", "wget", "-q", "-T", "2", "-O", "-", "localhost:6333/ready" ] test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/localhost/6333 && echo -e 'GET /readyz HTTP/1.0\\r\\n\\r\\n' >&3 && timeout 2 cat <&3 | grep -q ready"]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
retries: 5 retries: 5

View File

@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
gcc \ gcc \
g++ \ g++ \
python3-dev \ python3-dev \
curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy and install Python requirements # Copy and install Python requirements