diff --git a/Containers/talk-recording/Dockerfile b/Containers/talk-recording/Dockerfile index 1d7df914..a935db93 100644 --- a/Containers/talk-recording/Dockerfile +++ b/Containers/talk-recording/Dockerfile @@ -2,6 +2,7 @@ FROM python:3.13.0-alpine3.20 COPY --chmod=775 start.sh /start.sh +COPY --chmod=775 healthcheck.sh /healthcheck.sh ENV RECORDING_VERSION=v0.1 ENV ALLOW_ALL=false @@ -54,5 +55,5 @@ USER 122 ENTRYPOINT ["/start.sh"] CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"] -HEALTHCHECK CMD nc -z 127.0.0.1 1234 || exit 1 +HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/talk-recording/healthcheck.sh b/Containers/talk-recording/healthcheck.sh new file mode 100644 index 00000000..8397ab3c --- /dev/null +++ b/Containers/talk-recording/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 1234 || exit 1 diff --git a/php/containers.json b/php/containers.json index 54b43dc4..a3525940 100644 --- a/php/containers.json +++ b/php/containers.json @@ -485,6 +485,14 @@ "image": "nextcloud/aio-talk-recording", "user": "122", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "1234" ],