mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add healthcheck for nextcloud
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
b51223fd69
commit
a87459779b
2 changed files with 9 additions and 1 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue