fix: collabora healthcheck without curl

This commit is contained in:
Michael Barz
2026-06-19 09:36:25 +02:00
parent cda4138e7d
commit 4d3e787e2d

View File

@@ -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