[+] Completed lab 4

This commit is contained in:
Антон Архипов
2026-11-16 16:23:32 +03:00
parent ec540a1a72
commit 06f0a9f31e
60 changed files with 7160 additions and 53 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
case "${TARGET_INSTANCE_ID:-}" in
api-a|api-b) service=$TARGET_INSTANCE_ID ;;
*) printf '%s\n' 'TARGET_INSTANCE_ID must be api-a or api-b' >&2; exit 2 ;;
esac
docker compose stop -t 5 "$service"
docker compose ps --all "$service"