#!/bin/sh # Restart hook of `make test-persistence` (tests/resilience.py): stops the # API, PostgreSQL and Valkey gracefully and starts the same containers again. # Volumes and data are kept and nothing is re-seeded. The test hides the # output, so failures surface through the exit code only. set -eu cd "$(dirname "$0")/.." docker compose stop docker compose up -d --wait