feat: add Docker HEALTHCHECK (issue #69)

This commit is contained in:
DoroWu
2018-04-22 23:03:09 +08:00
parent ba3e2c2595
commit e2d659d992
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -90,4 +90,5 @@ EXPOSE 80
WORKDIR /root
ENV HOME=/home/ubuntu \
SHELL=/bin/bash
HEALTHCHECK --interval=30s --timeout=5s CMD curl --fail http://127.0.0.1/api/health
ENTRYPOINT ["/startup.sh"]