#!/usr/bin/env bash

echo "Waiting for backend container to start up and migrate DB..."
until curl --output /dev/null --silent --fail http://localhost:3001/api
do
  sleep 2
done
echo "Backend container is ready."


echo "Waiting for frontend container to start up..."
until curl --output /dev/null --silent --head --fail http://localhost:3000
do
  sleep 2
done
echo "Frontend container is ready."

#!/usr/bin/env bash

echo "Waiting for backend container to start up and migrate DB..."
until curl --output /dev/null --silent --fail http://localhost:3001/api
do
  sleep 2
done
echo "Backend container is ready."


echo "Waiting for frontend container to start up..."
until curl --output /dev/null --silent --fail http://localhost:3000
do
  sleep 2
done
echo "Frontend container is ready."

Replace head request of wait for container with get request
Replace head request of wait for container with get request
