add code for level 4

This commit is contained in:
Матвей
2026-10-14 15:25:51 +03:00
parent 6e7b8007ac
commit 516bb095ac
11 changed files with 175 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/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