mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-01 16:30:09 +00:00
ntofiy-push - improve healthcheck
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
FROM alpine:3.18.2
|
FROM alpine:3.18.2
|
||||||
|
|
||||||
COPY --chmod=775 start.sh /start.sh
|
COPY --chmod=775 start.sh /start.sh
|
||||||
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
@@ -17,5 +18,5 @@ RUN set -ex; \
|
|||||||
USER 33
|
USER 33
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z localhost 7867 || exit 1
|
HEALTHCHECK CMD /healthcheck.sh
|
||||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||||
|
|||||||
7
Containers/notify-push/healthcheck.sh
Normal file
7
Containers/notify-push/healthcheck.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! nc -z "$NEXTCLOUD_HOST" 9000; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
nc -z localhost 7867 || exit 1
|
||||||
Reference in New Issue
Block a user