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

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! :)