forked from mtusi2026/mtusi2026lab2
10 lines
341 B
Bash
Executable File
10 lines
341 B
Bash
Executable File
#!/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}}'
|