#!/bin/sh # Restart API and ALL state stores without deleting named volumes. # The public persistence test polls /health/ready itself, so this hook only # performs the restart and returns non-zero on a Compose error. set -eu ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) cd "$ROOT" if [ ! -f .env ]; then echo "missing .env; copy .env.example and set local synthetic credentials" >&2 exit 2 fi docker compose --env-file .env restart