#!/bin/bash

# urban-lifeline Docker Compose 停止脚本

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

echo "=========================================="
echo "停止 urban-lifeline 开发环境"
echo "=========================================="
echo ""

cd "$SCRIPT_DIR"

if command -v docker-compose &> /dev/null; then
    docker-compose down
else
    docker compose down
fi

echo ""
echo "✅ 服务已停止"
echo ""
echo "数据已保留在: ../../.data/docker/nacos/"
echo ""
echo "如需重新启动，请运行: ./start.sh"
echo "如需完全清理，请运行: docker-compose down -v"
echo ""
