feat(web): T-WEB-010 部署脚本(Docker Compose,不含 MySQL)

This commit is contained in:
2026-09-14 19:00:55 +08:00
parent 640736c77b
commit 5a8b77b0a4
8 changed files with 475 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# 停止服务(默认保留数据卷)
set -euo pipefail
cd "$(dirname "$0")"
if docker compose version >/dev/null 2>&1; then
DC="docker compose"
else
DC="docker-compose"
fi
$DC down "$@"
echo "服务已停止。数据卷 opendance-storage 未被删除。"
echo "如需一并删除上传数据:$DC down -v"