Complete lab 7 security infrastructure

This commit is contained in:
Yuliiiaaaa
2026-11-30 21:23:07 +03:00
parent 20afc2c790
commit c00d245263
55 changed files with 3515 additions and 28 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$ROOT"
case "${TARGET_INSTANCE_ID:-}" in
replica-a) docker compose --env-file .env stop api1 api1-mtls ;;
replica-b) docker compose --env-file .env stop api2 api2-mtls ;;
*) echo "TARGET_INSTANCE_ID must be replica-a or replica-b" >&2; exit 2 ;;
esac