mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 02:56:42 +01:00
Add healthcheck
This checks if status.php returns succesfully to determine if the Nextcloud instance is health. Signed-off-by: Sylvia van Os <sylvia@hackerchick.me>
This commit is contained in:
parent
dcf058fb55
commit
8355426311
2 changed files with 2 additions and 0 deletions
|
@ -129,5 +129,6 @@ RUN set -ex; \
|
||||||
COPY *.sh upgrade.exclude /
|
COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
|
HEALTHCHECK CMD ["curl", "--fail", "http://localhost/status.php"]
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["%%CMD%%"]
|
CMD ["%%CMD%%"]
|
||||||
|
|
|
@ -147,5 +147,6 @@ RUN set -ex; \
|
||||||
COPY *.sh upgrade.exclude /
|
COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
|
HEALTHCHECK CMD ["curl", "--fail", "http://localhost/status.php"]
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["%%CMD%%"]
|
CMD ["%%CMD%%"]
|
||||||
|
|
Loading…
Reference in a new issue