Files
mtusi2026lab5/scripts/restart.sh
T
2026-11-20 13:05:30 +03:00

6 lines
171 B
Bash

#!/bin/sh
set -eu
echo "Restarting API and Postgres (preserving volumes)..."
docker compose restart api1 api2 postgres
echo "Waiting for Postgres to be healthy..."
sleep 5