mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix healthcheck for nextcloud and database
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
3e8cdf16b1
commit
54c642e787
4 changed files with 21 additions and 5 deletions
|
|
@ -250,7 +250,8 @@ RUN set -ex; \
|
|||
chmod +x /cron.sh && \
|
||||
chmod +x /notify.sh && \
|
||||
chmod +x /notify-all.sh && \
|
||||
chmod +x /activate-collabora.sh
|
||||
chmod +x /activate-collabora.sh && \
|
||||
chmod +x healthcheck.sh
|
||||
|
||||
RUN set -ex; \
|
||||
mkdir /mnt/ncdata; \
|
||||
|
|
@ -264,4 +265,4 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd
|
|||
USER root
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
||||
HEALTHCHECK CMD (sudo -u www-data nc -z "$POSTGRES_HOST" 5432 || exit 0) && (sudo -u www-data nc -z localhost 9000 && sudo -u www-data nc -z localhost 7867) || exit 1
|
||||
HEALTHCHECK CMD /healthcheck.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue