This commit is contained in:
Alexandre
2023-05-02 11:57:39 +02:00
parent 3e8a1c8394
commit dfae8b02a4
3 changed files with 13 additions and 4 deletions

View File

@@ -114,11 +114,11 @@ LABEL \
# 6 Healthcheck #
#################
ENV HEALTH_PORT="22300" \
HEALTH_URL="/health"
ENV HEALTH_PORT="" \
HEALTH_URL=""
HEALTHCHECK \
--interval=5s \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD [[ $(curl -s "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}") == *"Invalid"* ]] || exit 1
CMD ps aux | grep "joplin" | grep -v "grep" || exit 1