def _check_service_health(self, service):
        """Check if a single service is healthy.

        Args:
            service: Service health check configuration

        Returns:
            bool: True if service is healthy, False otherwise
        """
        service_name = service["name"]
        service_url = service["url"]
        expected_status = service["expected_status"]

        try:
            response = requests.get(service_url, timeout=2)
            if response.status_code != expected_status:
                logger.debug(
                    f"Service {service_name} not ready: "
                    + f"status code {response.status_code} "
                    + f"(expected {expected_status})"
                )
                return False
            return True
        except RequestException as e:
            logger.debug(f"Service {service_name} not ready: connection failed")
            logger.debug(f"Error: {e}")
            return False
Check if a single service is healthy.

        Args:
            service: Service health check configuration

        Returns:
            bool: True if service is healthy, False otherwise
        
backend/tests/helpers/docker.py