fischer-agentkit/scripts/prod-stop.sh

20 lines
767 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# =============================================================================
# Fischer AgentKit — 生产环境一键停止脚本
# =============================================================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_ROOT"
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yaml}"
echo "停止 Fischer AgentKit 生产服务..."
docker compose -f "$COMPOSE_FILE" down 2>/dev/null && echo " [OK] 容器已停止并移除" || echo " [OK] 无运行中的容器"
echo ""
echo "注意数据卷Redis/PostgreSQL 数据)已保留。"
echo "如需清除所有数据运行docker volume rm fischer-agentkit_*"
echo "停止完成。"