diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-04-14 10:05:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 10:05:53 +0300 |
commit | f9d8052b48393674b5bd0c1a6c339f9fbf360ae6 (patch) | |
tree | 05f872b2b2ccce6101cb3f8e622abe6cf60421dd | |
parent | 4bb8d00ed5c44b632ff6dcf7710ffbf88927b07a (diff) | |
parent | 8355426311ac87cf85cf9c1f20e068f4b801c6b2 (diff) |
Merge pull request #1684 from TheLastProject/feature/healthcheck
Add healthcheck
-rw-r--r-- | Dockerfile-alpine.template | 1 | ||||
-rw-r--r-- | Dockerfile-debian.template | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 5c2ca13..147d0ee 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -129,5 +129,6 @@ RUN set -ex; \ COPY *.sh upgrade.exclude / COPY config/* /usr/src/nextcloud/config/ +HEALTHCHECK CMD ["curl", "--fail", "http://localhost/status.php"] ENTRYPOINT ["/entrypoint.sh"] CMD ["%%CMD%%"] diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 2f60e3b..137bf40 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -147,5 +147,6 @@ RUN set -ex; \ COPY *.sh upgrade.exclude / COPY config/* /usr/src/nextcloud/config/ +HEALTHCHECK CMD ["curl", "--fail", "http://localhost/status.php"] ENTRYPOINT ["/entrypoint.sh"] CMD ["%%CMD%%"] |