ccccccc / stop.sh
cnmksjs's picture
Upload 49 files
24fd742 verified
raw
history blame contribute delete
604 Bytes
#!/bin/bash
# 聊天应用停止脚本 - Linux版本
echo "🛑 停止聊天应用..."
echo
# 停止服务
if command -v docker-compose &> /dev/null; then
docker-compose down
else
docker compose down
fi
if [ $? -eq 0 ]; then
echo
echo "✅ 聊天应用已停止"
echo
echo "🧹 清理资源 (可选):"
echo " - 删除镜像: docker-compose down --rmi all"
echo " - 删除数据卷: docker-compose down -v"
echo " - 完全清理: docker-compose down -v --rmi all --remove-orphans"
else
echo
echo "❌ 停止失败,请检查错误信息"
exit 1
fi