I have a following setup in docker compose
nginx
for proxying tofrontend
,backend
and serving static contentbackend
app on port 8080 (spring boot)frontend
app on port 4000 (node for SSR)mysql
used 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 this:
- Start a new instance of
backend
- Wait till it starts (it could be per timer or a healthtest)
- Close the previously running instance
docker-compose.yml
file?