We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f17c2f5 + 60a692a commit cf41079Copy full SHA for cf41079
Containers/notify-push/Dockerfile
@@ -1,6 +1,7 @@
1
FROM alpine:3.18.2
2
3
COPY --chmod=775 start.sh /start.sh
4
+COPY --chmod=775 healthcheck.sh /healthcheck.sh
5
6
RUN set -ex; \
7
apk add --no-cache \
@@ -17,5 +18,5 @@ RUN set -ex; \
17
18
USER 33
19
ENTRYPOINT ["/start.sh"]
20
-HEALTHCHECK CMD nc -z localhost 7867 || exit 1
21
+HEALTHCHECK CMD /healthcheck.sh
22
LABEL com.centurylinklabs.watchtower.enable="false"
Containers/notify-push/healthcheck.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if ! nc -z "$NEXTCLOUD_HOST" 9000; then
+ exit 0
+fi
+nc -z localhost 7867 || exit 1
0 commit comments