add healthcheck for nextcloud

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-12-03 13:37:07 +01:00
parent b51223fd69
commit a87459779b
2 changed files with 9 additions and 1 deletions

View file

@ -279,5 +279,5 @@ USER root
ENTRYPOINT ["/start.sh"] ENTRYPOINT ["/start.sh"]
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
HEALTHCHECK --start-period=60s CMD sudo -E -u www-data bash /healthcheck.sh HEALTHCHECK CMD /healthcheck.sh
LABEL com.centurylinklabs.watchtower.enable="false" LABEL com.centurylinklabs.watchtower.enable="false"

View file

@ -148,6 +148,14 @@
"display_name": "Nextcloud", "display_name": "Nextcloud",
"image": "nextcloud/aio-nextcloud", "image": "nextcloud/aio-nextcloud",
"init": true, "init": true,
"healthcheck": {
"start_period": "0s",
"test": "/healthcheck.sh",
"interval": "30s",
"timeout": "30s",
"start_interval": "5s",
"retries": 3
},
"expose": [ "expose": [
"9000", "9000",
"9001" "9001"