#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
STACK_DIR="$ROOT_DIR/local/docker-jitsi-meet"

if [[ ! -d "$STACK_DIR" ]]; then
    echo "Missing $STACK_DIR. Run ./scripts/local-jitsi-setup.sh first."
    exit 1
fi

cd "$STACK_DIR"
docker compose logs -f "${@}"
