Files
mtusi2026lab3/scripts/restart.sh
T

9 lines
242 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
if [ -n "${LAB3_PROJECT:-}" ]; then
set -- --project-name "$LAB3_PROJECT"
fi
docker compose "$@" restart --no-deps --timeout 4 postgres
docker compose "$@" restart --no-deps --timeout 4 api1 api2