From a25f64e9a60747a583dabf9ecf4b1524a675dbfd Mon Sep 17 00:00:00 2001 From: CharaWein Date: Wed, 4 Nov 2026 20:25:29 +0300 Subject: [PATCH] =?UTF-8?q?s3:=20healthcheck=20HTTP/1.1=20=D1=81=20Host,?= =?UTF-8?q?=20=D0=B1=D0=B5=D0=B7=20head?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index c7aee3c6..a73312e4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -138,8 +138,8 @@ services: volumes: - s3_data:/bitnami/minio/data healthcheck: - # Без curl в образе: HTTP-запрос к /minio/health/ready через /dev/tcp bash. - test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9000 && printf 'GET /minio/health/ready HTTP/1.0\\r\\n\\r\\n' >&3 && head -1 <&3 | grep -q ' 200 '"] + # Без curl в образе: HTTP/1.1-запрос к /minio/health/live через /dev/tcp и read (только bash). + test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9000 && printf 'GET /minio/health/live HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >&3 && read -r line <&3 && [[ $$line == *' 200 '* ]]"] interval: 5s timeout: 3s retries: 20