loading...

Discussion on: What is the easiest way to deploy Docker Compose and update it with no downtime?

Collapse
clay profile image
Clay Ferguson

The only solution I know of for true "zero downtime" is to use a "load balancer", and then that means you have a minimum of two instances running most of the time so you can therefore take one down temporarily with no service interruption.

Collapse
imed profile image
Imed Adel Author

I see, thank you :) I'll be using this method

However, what do companies generally use to deal with this (aside from having a load balancer)?

Collapse
clay profile image
Clay Ferguson

In production systems a load balancer is always the solution.

However, the trick I use for development to make it where I can rebuild my Java class files and restart the container very rapidly is to make the VM point to my local folder where the compiler output goes to (class files) and then I make a docker volume point to that, so that the docker container is always reading my local files (java classes), adn I can simply run a shell script to 'restart' the container and it only takes a second or two.

Thread Thread
imed profile image
Imed Adel Author

That was very helpful, thank you! :)