Add RAGFlow service configuration and documentation

- Updated .env.example to include RAGFlow hostname and internal credentials for MySQL and MinIO.
- Modified Caddyfile to set up a reverse proxy for RAGFlow service.
- Enhanced docker-compose.yml with RAGFlow service definition, including environment variables and health checks for dependencies.
- Updated README.md to include RAGFlow information and service URL for user guidance.
- Configured system preparation script to set vm.max_map_count for Elasticsearch support required by RAGFlow.
- Added secret generation for RAGFlow internal credentials in the secrets generation script.
- Included RAGFlow in the final report script for visibility on service status and access information.
This commit is contained in:
Yury Kossakovsky
2025-10-29 11:37:37 -06:00
parent 1e2636d3bf
commit bf5575a48f
8 changed files with 142 additions and 0 deletions

View File

@@ -46,4 +46,15 @@ apt install -y unattended-upgrades
# Automatic confirmation for dpkg-reconfigure
echo "y" | dpkg-reconfigure --priority=low unattended-upgrades
# Set vm.max_map_count for Elasticsearch (required for RAGFlow if using ES backend)
log_info "Configuring vm.max_map_count for Elasticsearch support..."
if [ -f /etc/sysctl.conf ]; then
if ! grep -q "^vm.max_map_count" /etc/sysctl.conf; then
echo "vm.max_map_count=262144" >> /etc/sysctl.conf
log_info "Added vm.max_map_count=262144 to /etc/sysctl.conf"
fi
fi
# Apply immediately
sysctl -w vm.max_map_count=262144 > /dev/null 2>&1 || true
exit 0

View File

@@ -58,6 +58,9 @@ declare -A VARS_TO_GENERATE=(
# WAHA (WhatsApp HTTP API)
["WAHA_DASHBOARD_PASSWORD"]="password:32"
["WHATSAPP_SWAGGER_PASSWORD"]="password:32"
# RAGFlow internal credentials
["RAGFLOW_MYSQL_ROOT_PASSWORD"]="password:32"
["RAGFLOW_MINIO_ROOT_PASSWORD"]="password:32"
)
# Initialize existing_env_vars and attempt to read .env if it exists

View File

@@ -71,6 +71,7 @@ base_services_data=(
"python-runner" "Python Runner (Run your custom Python code from ./python-runner)"
"qdrant" "Qdrant (Vector Database)"
"ragapp" "RAGApp (Open-source RAG UI + API)"
"ragflow" "RAGFlow (Deep document understanding RAG engine)"
"searxng" "SearXNG (Private Metasearch Engine)"
"supabase" "Supabase (Backend as a Service)"
"waha" "WAHA WhatsApp HTTP API (NOWEB engine)"

View File

@@ -172,6 +172,16 @@ if is_profile_active "ragapp"; then
echo "API Docs: https://${RAGAPP_HOSTNAME:-<hostname_not_set>}/docs"
fi
if is_profile_active "ragflow"; then
echo
echo "================================= RAGFlow ============================="
echo
echo "Host: ${RAGFLOW_HOSTNAME:-<hostname_not_set>}"
echo "API (external via Caddy): https://${RAGFLOW_HOSTNAME:-<hostname_not_set>}"
echo "API (internal): http://ragflow:80"
echo "Note: Uses built-in authentication (login/registration available in web UI)"
fi
if is_profile_active "comfyui"; then
echo
echo "================================= ComfyUI ============================="