feat: 新增 Docker 部署支持、Swoole/Octane 集成及相关优化

- 添加 Dockerfile 与多套 docker-compose 配置(开发/生产环境)
- 集成 Laravel Octane (Swoole) 提升性能
- 新增健康检查、监控脚本及部署文档
- 新增 Docker 镜像离线导入包(MySQL/Redis/Meilisearch)
- 优化文档转换、预览服务及队列任务
- 添加 CreateAdminUser 命令与路由健康检查接口
- 新增 Swoole 队列兼容性测试套件

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 15:51:19 +08:00
parent acf549c43c
commit 3c206e9e06
90 changed files with 12731 additions and 1255 deletions

22
docker/stop-production.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Laravel知识库系统 - 生产环境停止脚本
set -e
echo "🛑 停止Laravel知识库系统生产环境..."
# 停止所有服务
echo "⏹️ 停止Docker服务..."
docker-compose down
# 可选:清理未使用的镜像和容器
read -p "是否清理未使用的Docker资源? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "🧹 清理Docker资源..."
docker system prune -f
docker volume prune -f
fi
echo "✅ 生产环境已停止"