From 4acc57a0f8c45ae5d07edf6ef0a5fd48ba236396 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 28 Jan 2026 20:54:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20healthcheck:=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=BF=D1=83=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20API=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 236c2d6..d0c7445 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,7 +32,7 @@ services: - RAG_AUTOSAVE_INTERVAL=${RAG_AUTOSAVE_INTERVAL:-600} - LOG_LEVEL=${LOG_LEVEL:-INFO} healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] + test: ["CMD", "python", "-c", "import urllib.request, os; key = os.getenv('RAG_API_KEY', ''); req = urllib.request.Request('http://localhost:8000/api/v1/health'); req.add_header('X-API-Key', key) if key else None; urllib.request.urlopen(req)"] interval: 30s timeout: 10s retries: 3