Rolling Updates and Zero Downtime

LEVEL 0

The Problem

You need to deploy a new version of your app.

Naive approach:

docker compose down  # Stop everything
docker compose up    # Start new version

Your app is down for 30 seconds while containers restart. Users see errors.

You need zero-downtime deployments.