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

[Feature Request] process-compose update #233

Closed
misuzu opened this issue Aug 21, 2024 · 2 comments
Closed

[Feature Request] process-compose update #233

misuzu opened this issue Aug 21, 2024 · 2 comments
Labels
done Done, awaiting release enhancement New feature or request

Comments

@misuzu
Copy link

misuzu commented Aug 21, 2024

Feature Request

I'd like to update an already running process-compose instance by passing an updated process-compose.yaml file.

Use Case:

For example, I have 10 different processes running. I've edited my process-compose.yaml file, and now I have to restart all of these processes.

Proposed Change:

I'd like to have something like process-compose update process-compose.yaml, which should do the following:

  1. If there are changes to existing processes in the updated process-compose.yaml file, stop the old instances of these processes and start new instances with the updated config. Do not touch other processes.
  2. If there are only new processes in the updated process-compose.yaml file, start the new processes without affecting the others.
  3. If some processes no longer exist in the updated process-compose.yaml file, stop only those old processes without touching the others.

This should mimic the behavior of Docker Swarm (docker stack deploy --prune -c docker-compose.yml mystack).

Who Benefits From The Change(s)?

Everyone who values their time, I guess.

Alternative Approaches

Running multiple process-compose instances with different sets on processes, which is not convenient.

@F1bonacc1
Copy link
Owner

F1bonacc1 commented Sep 14, 2024

Added in v1.27.0

Please let me know if everything is as expected.

Cheers!

@misuzu
Copy link
Author

misuzu commented Dec 10, 2024

Added in v1.27.0

Please let me know if everything is as expected.

Cheers!

Thank you!
I didn't have much time lately but now I've run some tests and found a couple of issues: #283 #284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Done, awaiting release enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants