ЛР2: PostgreSQL, сессии (Basic + Bearer), Compose, миграции

This commit is contained in:
2026-10-16 11:11:00 +03:00
parent 65003b6119
commit 4937d6d4e8
56 changed files with 1969 additions and 26 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Hook для make test-persistence: перезапуск API и PostgreSQL с сохранением volumes.
set -eu
cd "$(dirname "$0")/.."
docker compose stop api postgres
# Порядок: postgres (healthy) -> migrate (exit 0) -> api (healthy).
docker compose up -d --wait
docker compose ps --format '{{.Name}} {{.Status}}'