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

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=lib.sh
source "${SCRIPT_DIR}/lib.sh"

if [[ "${SKIP_CLEANUP_V1:-0}" != "1" ]]; then
  "${SCRIPT_DIR}/03_cleanup_v1_legacy.sh" || true
fi

echo "[host] docker compose up -d (v1.1)"
dc up -d

echo "[host] containers:"
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' | (head -n 1 && grep -E "mvp11-ray-") || true
