#!/bin/sh set -eu # Explicit persistence hook for lab2. # Restart the API and the PostgreSQL storage that holds users, messages and sessions. # Volumes are preserved: no down -v, no flush, no re-seed. Exit 0 when the action is done; # the public test waits for /health/ready separately. cd "$(dirname "$0")/.." docker compose restart db api