From 4d3e787e2df28cfea03c1e962c178265c939357f Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Fri, 19 Jun 2026 09:36:25 +0200 Subject: [PATCH] fix: collabora healthcheck without curl --- weboffice/collabora.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index 576dcaa..71cf32c 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -83,7 +83,13 @@ services: entrypoint: [ '/bin/bash', '-c' ] command: [ 'coolconfig generate-proof-key && /start-collabora-online.sh' ] healthcheck: - test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ] + test: + [ + "CMD", + "bash", + "-c", + "exec 3<>/dev/tcp/127.0.0.1/9980 && printf 'GET /hosting/discovery HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >&3 && cat <&3 | head -1 | grep -q '200 OK'" + ] interval: 15s timeout: 10s retries: 5