18 lines
322 B
Bash
Executable File
18 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
docker compose --env-file .env restart postgres cache api
|
|
|
|
i=0
|
|
while [ $i -lt 60 ]; do
|
|
if curl -sf http://localhost:8080/health/ready > /dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
sleep 1
|
|
i=$((i + 1))
|
|
done
|
|
|
|
echo "stack did not become healthy in 60 seconds" >&2
|
|
exit 1 |