#!/bin/bash set -e echo ">>> Validating docker-compose configuration..." docker compose config echo ">>> Building and starting Agent System services..." docker compose up -d --build echo ">>> Services status:" docker ps --filter "name=agent-system" echo ">>> Verifying API endpoints..." sleep 5 # Give it a moment to start endpoints=("summary" "nodes" "services") for ep in "${endpoints[@]}"; do echo "Checking /$ep..." curl -s -f http://localhost:18180/$ep > /dev/null && echo " OK" || echo " FAILED" done echo ">>> Deployment complete."