12 lines
247 B
Bash
12 lines
247 B
Bash
#!/bin/sh
|
|
set -eu
|
|
docker compose --env-file .env restart postgres api-1 api-2 lb
|
|
i=0
|
|
while [ "$i" -lt 90 ]; do
|
|
if curl -fsS http://localhost:8080/health/ready >/dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
i=$((i + 1))
|
|
sleep 1
|
|
done
|
|
exit 1 |