From 5d1e46430c26d2a5f4948d03fc082a9cd0107b1f Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Thu, 15 May 2025 20:48:32 -0600 Subject: [PATCH] Add PostgreSQL configuration for n8n and Langfuse in final report script - Enhanced the final report script to include details for a standalone PostgreSQL instance used by n8n and Langfuse. - Added Ollama service information for internal access based on active profiles. - Clarified the distinction between Supabase's internal PostgreSQL and the standalone instance for better user understanding. --- scripts/06_final_report.sh | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/scripts/06_final_report.sh b/scripts/06_final_report.sh index fed4428..6d7250d 100755 --- a/scripts/06_final_report.sh +++ b/scripts/06_final_report.sh @@ -92,7 +92,7 @@ if is_profile_active "supabase"; then echo echo "================================= PostgreSQL (Supabase) ============================" echo - echo "Host: ${POSTGRES_HOST:-db}" + echo "Host: ${POSTGRES_HOST:-db}" # Note: Supabase uses 'db' as the hostname for its internal Postgres by default echo "Port: ${POSTGRES_PORT:-5432}" echo "Database: ${POSTGRES_DB:-postgres}" echo "User: ${POSTGRES_USER:-postgres}" @@ -167,6 +167,35 @@ if is_profile_active "letta"; then echo "Authorization: Bearer ${LETTA_SERVER_PASSWORD}" fi +if is_profile_active "cpu" || is_profile_active "gpu-nvidia" || is_profile_active "gpu-amd"; then + echo + echo "================================= Ollama ==============================" + echo + echo "Internal Access (e.g., from n8n, Open WebUI): http://ollama:11434" + echo "(Note: Ollama runs with the selected profile: cpu, gpu-nvidia, or gpu-amd)" +fi + +# Standalone PostgreSQL (used by n8n, Langfuse, etc.) +# Check if n8n or langfuse is active, as they use this PostgreSQL instance. +# The Supabase section already details its own internal Postgres. +if is_profile_active "n8n" || is_profile_active "langfuse"; then + # Check if Supabase is NOT active, to avoid confusion with Supabase's Postgres if both are present + # However, the main POSTGRES_PASSWORD is used by this standalone instance. + # Supabase has its own environment variables for its internal Postgres if configured differently, + # but the current docker-compose.yml uses the main POSTGRES_PASSWORD for langfuse's postgres dependency too. + # For clarity, we will label this distinctly. + echo + echo "==================== Standalone PostgreSQL (for n8n, Langfuse, etc.) =====================" + echo + echo "Host: ${POSTGRES_HOST:-postgres}" + echo "Port: ${POSTGRES_PORT:-5432}" + echo "Database: ${POSTGRES_DB:-postgres}" # This is typically 'postgres' or 'n8n' for n8n, and 'langfuse' for langfuse, but refers to the service. + echo "User: ${POSTGRES_USER:-postgres}" + echo "Password: ${POSTGRES_PASSWORD:-}" + echo "(Note: This is the PostgreSQL instance used by services like n8n and Langfuse.)" + echo "(It is separate from Supabase's internal PostgreSQL if Supabase is also enabled.)" +fi + echo echo "=======================================================================" echo