Deploy new image in Docker Compose stack without downtime
You can avoid to put down everything at the same time (docker-compose down
), just with something like this:
docker-compose pull --paralleldocker-compose up --force-recreate <specific-service-name1>
This will pull & stop & recreate (run) your <specific-service-name1>
containers, and won't touch any other container.
Later you can deploy the rest:
docker-compose up --force-recreate <specific-service-name2>docker-compose up --force-recreate <specific-service-name3>