You can docker compose up -d <service>
to (re)create only one service from your Dockerfile
Comment on Get notified on Mastodon for new Github releases
eskuero@lemmy.fromshado.ws 9 months agoI 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
7Sea_Sailor@lemmy.dbzer0.com 8 months ago
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.