Реализация на 4

This commit is contained in:
Grbisba
2026-11-05 14:24:40 +03:00
parent 20f2f00a60
commit 8d44c74535
85 changed files with 3601 additions and 1109 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -eu
project_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$project_root"
if [ ! -d certs ]; then
make key-gen
fi
compose() {
docker compose --env-file "${COMPOSE_ENV_FILE:-.env}" -f docker-compose.yml "$@"
}
# Validate and build before stopping the API. Recreate containers to apply
# current Compose settings, preserve named volumes, and wait for healthchecks.
compose config --quiet
compose build api
compose stop api
compose up -d --force-recreate --wait --wait-timeout 120 postgres redis
compose up -d --no-build --pull never --force-recreate --wait --wait-timeout 60 api