We have a multi-container application, which uses a microservices architecture, running in Docker Compose.
When I make code changes to the web app, for example, I need to rebuild the image with new code, then run it again in my compose stack, without any downtime.
Here is the current sequence of events that we are using:
- Make changes to app code
- Rebuild image
- Push image(to docker hub)
docker-compose downdocker-compose up
After running docker-compose down, all apps go down. Then docker-compose up brings the whole stack back up.
Is there a way to redeploy individual images in Docker Compose without any downtime, and without bringing down the entire application stack?