What to do or how to handle if health_status of a docker container changes

I am running a docker container with health-cmd and I know it will turn to unhealthy when it stops working.

$ docker run 
 --health-cmd='curl -sS || exit 1' 
 --restart on-failure 

I want to restart the container when it changes its health-status. How can do that? How to trigger the restart?

My Docker version 19.03.1, build 74b1e89

Source: StackOverflow