Files
mtusi2026lab2/scripts/restart.sh
T

10 lines
341 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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}}'