mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-23 21:36:19 +08:00
improve healthcheck for mastercontainer
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
5cebbcd7b3
commit
59bbff23fe
2 changed files with 9 additions and 2 deletions
|
@ -90,16 +90,18 @@ COPY session-deduplicator.sh /
|
|||
COPY cron.sh /
|
||||
COPY daily-backup.sh /
|
||||
COPY supervisord.conf /
|
||||
COPY healthcheck.sh /
|
||||
RUN chmod +x /usr/bin/start.sh; \
|
||||
chmod +x /cron.sh; \
|
||||
chmod +x /session-deduplicator.sh; \
|
||||
chmod +x /backup-time-file-watcher.sh; \
|
||||
chmod +x /daily-backup.sh; \
|
||||
chmod a+r /Caddyfile
|
||||
chmod a+r /Caddyfile; \
|
||||
chmod +x /healthcheck.sh
|
||||
|
||||
USER root
|
||||
|
||||
ENTRYPOINT ["start.sh"]
|
||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
|
||||
HEALTHCHECK CMD curl -skfI https://localhost:8080 || exit 1
|
||||
HEALTHCHECK CMD /healthcheck.sh
|
5
Containers/mastercontainer/healthcheck.sh
Normal file
5
Containers/mastercontainer/healthcheck.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f "/mnt/docker-aio-config/data/configuration.json" ]; then
|
||||
curl -skfI https://localhost:8080 || exit 1
|
||||
fi
|
Loading…
Reference in a new issue