diff --git a/compose.yaml b/compose.yaml index c7aee3c..a73312e 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