lab7: PKI, mTLS infra, OpenBao non-dev, hardening, lifecycle scripts

This commit is contained in:
2026-11-26 16:47:23 +03:00
parent cda6e27fb8
commit 16accda962
45 changed files with 3593 additions and 660 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# Восстанавливает недостающую API-реплику до объявленного числа реплик.
# Восстанавливает недостающую API-реплику до объявленного числа реплик без пересборки образа.
set -eu
env_file="${COMPOSE_ENV_FILE:-.env}"
@@ -8,4 +8,4 @@ if [ -z "$replicas" ] && [ -f "$env_file" ]; then
replicas=$(sed -n 's/^API_REPLICAS=//p' "$env_file" | tail -n 1)
fi
replicas="${replicas:-2}"
exec docker compose --env-file "$env_file" up -d --no-deps --scale "api=${replicas}" api
exec docker compose --env-file "$env_file" up -d --no-build --no-deps --wait --scale "api=${replicas}" api