-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to implement health-on-failure via podman-compose #747
Comments
I think it's mainly due to the fact the compose specificiation doesn't have any way to specify an action when the container is unhealthy Regardless it would be helpful to have something to automatically restart containers based on their health. Either in the compose file or an external service |
As a workaround, I'm running podman-compose with
This requires that all services have a healthcheck defined, either with a service:
s:
healthcheck:
disable: true |
I've proposed a PR#955 that should allow to specify that. |
Hello ,
Seems it is not possible to setup option '--health-on-failure' via podman-compose
podman run --replace -d --name test-container --health-cmd /healthcheck --health-on-failure=kill --health-retries=1 health-check-actions
The text was updated successfully, but these errors were encountered: