https://github.com/Wowu/docker-rollout
basher install
🚀 Zero Downtime Deployment for Docker Compose
Simply replace docker compose up -d <service>
with docker rollout <service>
in your deployment scripts. This command will scale the service to twice the current number of instances, wait for the new containers to be ready, and then remove the old containers.