add HEALTHCHECK.

This commit is contained in:
m1k1o
2021-03-19 14:42:54 +01:00
parent 14939db65a
commit ed2cdaf71d
3 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,9 @@ ENV NEKO_BIND=:8080
COPY --from=server /src/bin/neko /usr/bin/neko
COPY --from=client /src/dist/ /var/www
HEALTHCHECK --interval=10s --timeout=5s --retries=8 \
CMD wget -O - http://localhost:${NEKO_BIND#*:}/health || exit 1
#
# run neko
CMD ["/usr/bin/supervisord", "-c", "/etc/neko/supervisord.conf"]