Files
mtusi2026lab2/scripts/restart.sh

7 lines
180 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
# Stop the API first; bring back PostgreSQL with its existing named volume.
docker compose stop api db
docker compose up -d --wait db api