Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bpkroth committed Sep 30, 2024
1 parent 0ec93fa commit 847ce65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/postgres-latest/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ docker compose up -d $services

# Wait until ready
for i in {1..5}; do
sleep 5
if /usr/bin/docker inspect --format="{{print .State.Health.Status}}" postgres | grep -q -x healthy; then
break
else
sleep 10
fi
done

Expand Down

0 comments on commit 847ce65

Please sign in to comment.