Automatic restart container when using docker-compose unless stopped
When using docker run for a single container using the restart policy, we can control the crashed container to restart based on condition.
Using a --restart flag in docker run command as below to