I have a following setup in docker compose
nginxfor proxying tofrontend,backendand serving imagesbackendapp on port 8080 (spring boot)frontendapp on port 4000 (node for SSR)mysqlused bybackend
Frontend can be updated relatively fast using
docker-compose up -d --no-deps frontend
Unfortunately backend takes about 1 minute to start.
Is there an easy way to achieve lower downtime without having to change the current setup too much? I like how simple it is right now.
I would imagine something like:
- Start a new instance of
backend - Wait till it starts (it could be per timer or a healthtest
- Close the perviously running instance