Реализовать наблюдаемость и доказательства уровня 4

This commit is contained in:
EgorAnti
2026-11-19 20:08:50 +03:00
parent 470d9d6f1e
commit 935de06050
195 changed files with 19333 additions and 53 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
PROJECT_DIR=$(dirname -- "$SCRIPT_DIR")
cd "$PROJECT_DIR"
: "${ENV_FILE:=.env}"
# Preserve named volumes and the network. The migration job is intentionally
# not re-run during a same-version restart.
docker compose --env-file "$ENV_FILE" stop nginx api redis postgres minio
docker compose --env-file "$ENV_FILE" up -d --wait --wait-timeout 90 postgres redis minio
docker compose --env-file "$ENV_FILE" run --rm minio-init
docker compose --env-file "$ENV_FILE" up -d --wait --wait-timeout 90 --no-deps --scale api=2 api
docker compose --env-file "$ENV_FILE" up -d --no-deps nginx