Commit 41d9479d authored by liuyang's avatar liuyang

add health check

parent dd6dd4ca
...@@ -16,3 +16,6 @@ ENV OVERRIDE_PROP "" ...@@ -16,3 +16,6 @@ ENV OVERRIDE_PROP ""
ENTRYPOINT ["/usr/share/app/docker-entrypoint.sh"] ENTRYPOINT ["/usr/share/app/docker-entrypoint.sh"]
EXPOSE 80 EXPOSE 80
HEALTHCHECK --timeout=5s --start-period=60s \
CMD curl -f http://localhost:8080/actuator/health || exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment