Your HEALTHCHECK always reports unhealthy because curl returns the wrong exit code or endpoint is wrong.