Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/docker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-04-14 10:05:53 +0300
committerGitHub <noreply@github.com>2022-04-14 10:05:53 +0300
commitf9d8052b48393674b5bd0c1a6c339f9fbf360ae6 (patch)
tree05f872b2b2ccce6101cb3f8e622abe6cf60421dd
parent4bb8d00ed5c44b632ff6dcf7710ffbf88927b07a (diff)
parent8355426311ac87cf85cf9c1f20e068f4b801c6b2 (diff)
Merge pull request #1684 from TheLastProject/feature/healthcheck
Add healthcheck
-rw-r--r--Dockerfile-alpine.template1
-rw-r--r--Dockerfile-debian.template1
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%%"]