Files
mtusi2026lab4/scripts/restart.sh

8 lines
275 B
Bash
Executable File

#!/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 minio api1 api2