Good news, that already exists. It just is not written down anywhere.
Every Linux package is published under a versioned name, and the file the download page points at is only a symlink to the newest one. So these are live right now:
https://yardstickhome.com/download/yardstick_1.0.8_amd64.deb
https://yardstickhome.com/download/yardstick_1.0.8_arm64.deb
Older versions stay where they are, so 1.0.2 and 1.0.5 are still there if you ever want to go back to one. Your compose file works as written once you drop that URL in. They will get cleaned up from time to time however.
If you would rather not hand-edit a version number on release day, there is a manifest the application itself uses to check for updates, and it is public:
https://yardstickhome.com/release/latest.json
It carries the current version, the URL for each architecture and a sha256 for each, so a build can pin and verify in one step:
ARCH=$(dpkg --print-architecture)
M=$(curl -fsSL https://yardstickhome.com/release/latest.json)
VERSION=$(echo "$M" | jq -r .version)
URL=$(echo "$M" | jq -r --arg a "$ARCH" '.linux[$a].url')
SHA=$(echo "$M" | jq -r --arg a "$ARCH" '.linux[$a].sha256')
curl -fsSL "$URL" -o yardstick.deb
echo "$SHA yardstick.deb" | sha256sum -c -
One thing worth flagging for anyone copying from further up the thread: debian:bookworm ships with no package lists, so apt-get update has to run before the install or it will fail resolving the .deb’s dependencies. Your version already does this.
Two things I should say plainly, the same as before.
This is still not a supported way to run Yardstick, and the above is about as far as we can usefully help. If something goes wrong inside a container we will have a hard time telling whether it is us or the container.
And the update button inside Yardstick will not work in there. It replaces the package on the machine, which is not something a container can sensibly do to itself. So rebuilding when a new version comes out is on this process you are building (its good). That is the part I would most like you to keep in mind, because the moments it matters are the ones where we have already found and fixed whatever is biting you. Keeping an eye on the changelog is the way to stay ahead of it. Off Disclaimer Soapbox now.
If you do run it this way, we would be glad to hear how its going!