Files
mtusi2026lab2/scripts/restart.sh
T

7 lines
223 B
Bash
Executable File

#!/bin/sh
# Explicit persistence test hook. Retains the named database volume.
set -eu
cd "$(dirname "$0")/.."
docker compose --env-file .env stop api db
docker compose --env-file .env up -d --wait --wait-timeout 45 db api