Skip to content
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

Support compose.yml lifecycle hooks #25370

Closed
davebenvenuti opened this issue Feb 20, 2025 · 1 comment
Closed

Support compose.yml lifecycle hooks #25370

davebenvenuti opened this issue Feb 20, 2025 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@davebenvenuti
Copy link

Feature request description

docker-compose supports post_start and pre_down hooks as of Docker compose 2.30.0. If podman-compose aims to have feature parity these would be nice to have there as well.

Suggest potential solution

  • Given a post_start entry which conforms to the Docker Compose spec, exec this command in the container after it starts.
  • Given a pre_down entry which conforms to the Docker Compose spec, exec this command in the container before it goes down.

Have you considered any alternatives?

This can be worked around with a custom script but given it's a feature defined in the Docker Compose spec, it would be nice to have native support in podman-compose.

Additional context

No response

@davebenvenuti davebenvenuti added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 20, 2025
@Luap99
Copy link
Member

Luap99 commented Feb 20, 2025

You can use docker-compose against the podman service, podman-compose is not maintained or directly supported by the podman developers. so you need to ask podman-compose to implement this.
https://github.com/containers/podman-compose/

@Luap99 Luap99 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants