forked from mtusi2026/mtusi2026lab2
Проверка и завершение требований уровней «3» и «4»
This commit is contained in:
+6
-5
@@ -4,12 +4,13 @@ set -eu
|
||||
project_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$project_root"
|
||||
|
||||
if [ ! -d certs ]; then
|
||||
make key-gen
|
||||
fi
|
||||
|
||||
# Keys and environment must already exist; never rotate keys during restart.
|
||||
compose() {
|
||||
docker compose --env-file "${COMPOSE_ENV_FILE:-.env}" -f docker-compose.yml "$@"
|
||||
if [ -n "${COMPOSE_OVERRIDE_FILE:-}" ]; then
|
||||
docker compose --env-file "${COMPOSE_ENV_FILE:-.env}" -f docker-compose.yml -f "$COMPOSE_OVERRIDE_FILE" "$@"
|
||||
else
|
||||
docker compose --env-file "${COMPOSE_ENV_FILE:-.env}" -f docker-compose.yml "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# Validate and build before stopping the API. Recreate containers to apply
|
||||
|
||||
Reference in New Issue
Block a user