Files
mtusi2026lab3/scripts/rolling-update.sh
2026-10-14 15:25:51 +03:00

11 lines
309 B
Bash
Executable File

#!/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