Closed amm123 closed 2 years ago
Hi @amm123, thanks for taking your time to open this issue, if you feel like this could be a beneficial addition to the project, you are welcome to open a PR with your suggestions!
Hi @amm123 Healthcheck issue was resolved by https://github.com/toptal/haste-server/pull/389
current health check will alway give unhealthy as it cannot access the ${PORT} without shell ( also it will no know what is the '||' without a shell) therefore it will always fail and docker will report unhealthy status it should use the shell command instead of the exec array.
CMD [ "curl" , "-f" "localhost:${PORT}", "||", "exit", "1"]
should be CMD curl -f localhost:${PORT} || exit 1
https://github.com/toptal/haste-server/commit/5a8d52a5e3e76e735cf135e33596f70cc548b138