#!/bin/sh # Hook для make test-persistence: перезапуск всего стенда (LB, API, PostgreSQL) с сохранением volumes. set -eu cd "$(dirname "$0")/.." docker compose stop lb api postgres # Порядок: postgres (healthy) -> migrate (exit 0) -> api (healthy) -> lb (healthy). docker compose up -d --wait docker compose ps --format '{{.Name}} {{.Status}}'