mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Add health checks to Wekan container
This commit is contained in:
parent
581fd9c9fb
commit
8a4f25527e
2 changed files with 15 additions and 2 deletions
|
|
@ -250,10 +250,14 @@ RUN \
|
||||||
rm -R /home/wekan/app && \
|
rm -R /home/wekan/app && \
|
||||||
rm -R /home/wekan/app_build && \
|
rm -R /home/wekan/app_build && \
|
||||||
mkdir /data && \
|
mkdir /data && \
|
||||||
chown wekan --recursive /data
|
chown wekan --recursive /data && \
|
||||||
#cat /home/wekan/python/esprima-python/files.txt | xargs rm -R && \
|
#cat /home/wekan/python/esprima-python/files.txt | xargs rm -R && \
|
||||||
#rm -R /home/wekan/python
|
#rm -R /home/wekan/python
|
||||||
#rm /home/wekan/install_meteor.sh
|
#rm /home/wekan/install_meteor.sh
|
||||||
|
\
|
||||||
|
# Health Check dependencies
|
||||||
|
apt-get install -y --no-install-recommends curl
|
||||||
|
|
||||||
|
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
|
|
@ -261,6 +265,9 @@ USER wekan
|
||||||
|
|
||||||
STOPSIGNAL SIGKILL
|
STOPSIGNAL SIGKILL
|
||||||
|
|
||||||
|
HEALTHCHECK --start-period=30s --interval=30s --timeout=10s --retries=3 \
|
||||||
|
CMD curl --fail "http://localhost:$PORT" || exit 1
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
|
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
|
||||||
# Add more Node heap:
|
# Add more Node heap:
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,13 @@ RUN \
|
||||||
chown wekan --recursive /home/wekan/.config && \
|
chown wekan --recursive /home/wekan/.config && \
|
||||||
\
|
\
|
||||||
# Install Node dependencies
|
# 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
|
EXPOSE $PORT
|
||||||
USER wekan
|
USER wekan
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue