Files
mtusi2026lab3-fork/scripts/restart.sh
T
2026-10-22 20:21:52 +03:00

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