Files
mtusi2026lab2/scripts/restart.sh
T
paflove b07bd5a571
Skeleton contracts / contracts (pull_request) Canceled after 0s
Complete Lab 2 for Grade 5 (Track 2)
2026-10-28 13:23:56 +03:00

9 lines
226 B
Bash

#!/bin/sh
set -e
echo "Restarting stack while preserving volumes..."
docker compose restart
echo "Waiting for API readiness..."
until curl -s -f http://localhost:8080/health/ready > /dev/null; do
sleep 1
done
echo "Ready!"