diff --git a/Containers/collabora/Dockerfile b/Containers/collabora/Dockerfile index 40f2c4f6..3c709c35 100644 --- a/Containers/collabora/Dockerfile +++ b/Containers/collabora/Dockerfile @@ -15,7 +15,9 @@ RUN set -ex; \ ; \ rm -rf /var/lib/apt/lists/*; +COPY --chmod=775 healthcheck.sh /healthcheck.sh + USER 100 -HEALTHCHECK CMD nc -z 127.0.0.1 9980 || exit 1 +HEALTHCHECK --start-period=360s CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/collabora/healthcheck.sh b/Containers/collabora/healthcheck.sh new file mode 100644 index 00000000..67cecdc3 --- /dev/null +++ b/Containers/collabora/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 9980 || exit 1 diff --git a/php/containers.json b/php/containers.json index 142f2772..cdf9d73c 100644 --- a/php/containers.json +++ b/php/containers.json @@ -341,6 +341,14 @@ "display_name": "Collabora", "image": "nextcloud/aio-collabora", "init": true, + "healthcheck": { + "start_period": "360s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "9980" ],