29 lines
752 B
Bash
Executable file
29 lines
752 B
Bash
Executable file
#!/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" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
|
|
|
|
if [ -z "$TELEGRAM_BOT_TOKEN" ]; then
|
|
echo ">>> Telegram bot status: DISABLED (token missing)"
|
|
else
|
|
echo ">>> Telegram bot status: ENABLED"
|
|
fi
|
|
|
|
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."
|