#!/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 "Local Docker Jitsi stack is not set up yet."
    exit 0
fi

cd "$STACK_DIR"
docker compose down
