forked from mtusi2026/mtusi2026lab3
11 lines
309 B
Bash
Executable File
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
|