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 
 --name=some-container 
 --health-cmd='curl -sS http://127.0.0.1:5000 || exit 1' 
 --health-timeout=10s 
 --health-retries=3 
 --health-interval=5s 
 --restart on-failure 
 container-image 

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