Skip to content

Commit

Permalink
fixed health-check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
idan-orbs committed Sep 19, 2023
1 parent 40b1df0 commit 6834d72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/scripts/health-check.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

COMPOSE_FILE="$HOME/deployment/docker-compose.yml"

echo -e "${BLUE}Performing a health check...${NC}\n"

# Wait for services to be up
while [ "$(docker-compose ps | awk '/_/{if($3 ~ "Up") print "Up"}')" != "Up" ]
while [ "$(docker-compose -f $COMPOSE_FILE ps | awk '/_/{if($3 ~ "Up") print "Up"}')" != "Up" ]
do
echo "Waiting for services to start..."
sleep 5
Expand Down

0 comments on commit 6834d72

Please sign in to comment.