forked from mtusi2026/mtusi2026lab3
feat:level4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Перезапуск API + всех state stores, volumes сохраняются.
|
||||
docker compose restart postgres redis api1 api2 lb
|
||||
# Ждём готовности.
|
||||
for i in $(seq 1 60); do
|
||||
if docker compose exec -T lb wget -qO- http://127.0.0.1:8080/health/ready >/dev/null 2>&1; then
|
||||
echo "ready after ${i}s"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "stack did not become ready in 60s" >&2
|
||||
exit 1
|
||||
Reference in New Issue
Block a user