Feature request: reduce changes in docker compose
It would be helpful reduce changes in docker compose, so that git pull of complete repo is not necessary anymore.
Just pulling the image should be sufficient in most cayses. If changes in .env are necessary the release notes should reflect that
Thanks, that's a fair point.
So far the focus has been on adding features quickly. The setup changed often, so the risk that compose.yaml would need changes was high. Asking for a git pull was the safest way to make sure nobody's installation broke after an update.
The project is now close to the shape I had in mind when I started it. That means I can finally freeze compose.yaml and keep it backward compatible. I expect version 0.6.0, or 0.7.0 at the latest, to be the first release you can update just by pulling the image:
docker compose pull
docker compose up -d
From then on, every release note will say whether anything in .env changed. If it says nothing, pulling the image is all you need.
0.6.0 is out, and from this release on updating is just pulling the image: https://github.com/Ivamic/immich-steward/releases/tag/v0.6.0
What changed:
compose.yamlnow pulls the image tag of the major version (0) instead of a fixed release, and reads all settings from.envviaenv_file. It stays the same within a major version: new settings get defaults in the app, new services come as optional profiles.- Every release carries
compose.yamlandexample.envas files, so a new install needs no git clone at all. - Each release note has an Upgrading section that says whether anything beyond pulling is needed.
- CI now checks every change by updating a running install of the previous release with the same
compose.yamland.env.
Getting there needs one manual step, once, because the old compose.yaml still names 0.5.1. If your .env has a line STEWARD_VERSION=…, remove it first. Then, without the worker:
curl -L -o compose.yaml https://github.com/Ivamic/immich-steward/releases/latest/download/compose.yaml
docker compose pull
docker compose up -d
With the worker on the server:
curl -L -o compose.yaml https://github.com/Ivamic/immich-steward/releases/latest/download/compose.yaml
docker compose --profile worker pull
docker compose --profile worker up -d
After that, every update is just docker compose pull and docker compose up -d. Details: Updating.
Thanks for pushing for this. Closing; feel free to reopen if anything doesn't work as described.