Question from the Docker compose test

Is it possible to specify a maximum number of restart attempts with the `on-failure` policy?