Hello!
We want to achieve proper rolling deployments for our SaaS node app. We have 8 identical node containers running - our docker-compose looks like this (simplified!):
services:
mysaasapp:
image: ${MYIMAGE}
...
deploy:
mode: replicated
replicas: 8
update_config:
parallelism: 1
delay: 30s
order: stop-first
resources:
limits:
cpus: '1.5'
memory: 4096M
reservations:
cpus: '0.5'
memory: 1536M
The thing is … it does not work. When I deploy a new image via MYIMAGE=... docker compose up -d mysaasapp
it does NOT delay the startup of the 8 instances - it basically does it all at the same time.
→ no “rolling deployment” is achieved whatsoever.
Can someone help? I don’t understand what I am doing wrong.
Thanks, best,
Patrick