FYI, docker-compse
is the legacy version that was deprecated a few years ago and no longer receives updates. docker compose
(with a space instead of a hyphen) is what you should be using these days.
Comment on Get notified on Mastodon for new Github releases
eskuero@lemmy.fromshado.ws 9 months agoI just do this. Get email notifications for new tagged releases, check changelog, everything fine?
docker-compose pull; docker-compose down; docker-compose up -d
And we are done
dan@upvote.au 8 months ago
Link@rentadrunk.org 9 months ago
You don’t need to run docker-compose down.
docker-compose pull; docker-compose up -d is enough
eskuero@lemmy.fromshado.ws 8 months ago
I guess that’s fair for single service composes but I don’t really trust composes with multiple services to gracefully handle only recreating one of the containers
Link@rentadrunk.org 8 months ago
If only one container has been updated then when you run docker compose up -d it will only recreate that container, unless it is a dependency of another container (like a database) in which case it will restart all containers that depend on it as well.
7Sea_Sailor@lemmy.dbzer0.com 8 months ago
You can
docker compose up -d <service>
to (re)create only one service from your Dockerfile