#!/bin/sh set -eu # Equivalent to a rolling update for this two-replica Compose topology. # Build the image separately; this hook only replaces one healthy API process at a time. cd "$(dirname "$0")/.." for service in api-a api-b; do docker compose up -d --no-deps --force-recreate --wait "$service" done