From 081c6f794014f781bd555700481983018a7b0052 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Mon, 1 Jun 2026 17:36:03 +0000 Subject: [PATCH] fix(infra): use bash socket healthcheck for qdrant in staging and test (#68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Pull Request fixes the Qdrant startup error on the Staging and Testing environments. ### 🔍 Cause of the Bug The official `qdrant/qdrant:latest` image is built on `debian-slim` and **does not contain `curl` or `wget`**. Changing the healthcheck to `curl` caused Qdrant to exit with status `127` (command not found), marking the service as unhealthy/error in Docker. ### 🛠️ Solution Reverts the healthcheck in both `docker-compose.stage.yml` and `docker-compose.test.yml` to the robust, built-in bash TCP socket check: ```yaml healthcheck: test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/6333'"] ``` Successfully validated locally and tested compilation. --------- Co-authored-by: Marek Jasiński Reviewed-on: https://git.archimap.cloud/mjasin/Nexus.Reader/pulls/68 Co-authored-by: Antigravity Co-committed-by: Antigravity --- docker-compose.stage.yml | 2 +- docker-compose.test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.stage.yml b/docker-compose.stage.yml index cac5b43..66b9864 100644 --- a/docker-compose.stage.yml +++ b/docker-compose.stage.yml @@ -62,7 +62,7 @@ services: volumes: - qdrant_stage_data:/qdrant/storage healthcheck: - test: ["CMD-SHELL", "curl -sf http://localhost:6333/healthz || exit 1"] + test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/6333'"] interval: 5s timeout: 5s retries: 5 diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 570ae65..ea3688b 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -59,7 +59,7 @@ services: volumes: - qdrant_test_data:/qdrant/storage healthcheck: - test: ["CMD-SHELL", "curl -sf http://localhost:6333/healthz || exit 1"] + test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/127.0.0.1/6333'"] interval: 5s timeout: 5s retries: 5