不知名提交

This commit is contained in:
2025-12-13 20:53:50 +08:00
parent c147502b4d
commit 1221d6faf1
120 changed files with 11005 additions and 1092 deletions

26
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
set -e
echo "🚀 启动 InfoGenie 服务..."
# 创建必要的目录
mkdir -p /app/data/logs
# 检查环境变量
if [ -z "$MONGO_URI" ]; then
echo "⚠️ 警告: MONGO_URI 未设置"
fi
if [ -z "$MAIL_USERNAME" ]; then
echo "⚠️ 警告: MAIL_USERNAME 未设置"
fi
echo "✅ 环境变量检查完成"
# 测试 Nginx 配置
echo "🔍 检查 Nginx 配置..."
nginx -t
# 启动 Supervisor
echo "🎯 启动服务进程..."
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf