Add health checks to Wekan container

This commit is contained in:
Luke Tainton 2023-06-08 09:22:59 +01:00
parent 581fd9c9fb
commit 8a4f25527e
No known key found for this signature in database
2 changed files with 15 additions and 2 deletions

View file

@ -78,7 +78,13 @@ RUN \
chown wekan --recursive /home/wekan/.config && \
\
# Install Node dependencies
npm install -g npm@${NPM_VERSION}
npm install -g npm@${NPM_VERSION} && \
\
# Install Health Check dependencies
apk add curl
HEALTHCHECK --start-period=30s --interval=30s --timeout=10s --retries=3 \
CMD curl --fail "http://localhost:$PORT" || exit 1
EXPOSE $PORT
USER wekan