#!/bin/sh set -eu # Explicit persistence hook for lab3. # Restart both API replicas and PostgreSQL. Volumes are preserved: no down -v, # no flush, no re-seed. The load balancer stays in front of the replicas. cd "$(dirname "$0")/.." docker compose restart db api1 api2