|Jake Howard fa19bff73b||5 months ago|
|.github/workflows||5 months ago|
|src||5 months ago|
|.gitignore||5 months ago|
|Cargo.lock||5 months ago|
|Cargo.toml||5 months ago|
|LICENSE||5 months ago|
|README.md||5 months ago|
Simple command to enable updating docker-compose based applications.
If newer containers are available than those running, pull the new containers, and cycle the containers. Supports specifying multiple containers using globs, and multiple globs if necessary.
docker-compose down && docker-compose up -d)
After writing this, turns out that
docker-compose support doing most of this for you.
If there are existing containers for a service, and the service’s configuration or image was changed after the container’s creation,
docker-compose uppicks up the changes by stopping and recreating the containers (preserving mounted volumes).
Therefore, you can easily achieve this by simply pulling each compose file, and running
up -d. Which changes all this Rust into a handful of lines of Bash.