Files
mtusi2026lab2/scripts/restart.sh
T

8 lines
224 B
Bash
Executable File

#!/bin/sh
# Restarts the API, PostgreSQL and Redis, keeping the named volume (no `down -v`, no re-seed).
set -eu
cd "$(dirname "$0")/.."
docker compose stop api redis postgres
docker compose up -d --wait postgres redis api