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

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"

cd "$REPO_ROOT"

compose_files=(-f compose.dev.yaml -f e2e/compose.e2e.tmpfs.yaml -f compose.dev.analytics.yaml)
services=(analytics tb-cli tinybird-local mailpit redis mysql)

docker compose "${compose_files[@]}" stop "${services[@]}"
