Skip to content

Conversation

hunter86bg
Copy link

Contributor Checklist:

This PR adds the option to stop/restart container when healtcheck fails.

Signed-off-by: Strahil Nikolov <[email protected]>
@hunter86bg
Copy link
Author

@p12tic , what do you think about this one ?

@p12tic
Copy link
Collaborator

p12tic commented Jun 2, 2024

@hunter86bg As I understand, this is not part of docker-compose specification. Accordingly, on_failure key should be x-podman.on_failure and also it should be documented in https://github.com/containers/podman-compose/blob/main/docs/Extensions.md. Also please add unit tests. There are a lot of examples how to write tests for container_to_args in repository history. For example, see pytests/ part of #925.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants