Skip to content

docs: refresh external postgresql database page#9174

Merged
mendonk merged 5 commits into
mainfrom
docs-lfoss-1567
Jul 25, 2025
Merged

docs: refresh external postgresql database page#9174
mendonk merged 5 commits into
mainfrom
docs-lfoss-1567

Conversation

@mendonk
Copy link
Copy Markdown
Collaborator

@mendonk mendonk commented Jul 24, 2025

  1. Refresh External PostgreSQL page.
  2. The location in leftnav is fine since the IA refresh.

Summary by CodeRabbit

  • Documentation
    • Improved and clarified instructions for configuring Langflow to use PostgreSQL, including setup for both local and containerized environments.
    • Expanded prerequisites and provided clearer guidance on creating and using the .env file.
    • Updated docker-compose instructions for better clarity, emphasizing use of the official configuration and persistent storage.
    • Enhanced guidance for multi-instance deployments and centralized configuration using environment variables.

@mendonk mendonk requested a review from aimurphy July 24, 2025 18:35
@mendonk mendonk self-assigned this Jul 24, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 24, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The documentation for configuring Langflow with PostgreSQL was revised for clarity and completeness. Updates include improved instructions for local and containerized setups, expanded prerequisites, clearer connection string guidance, corrected command usage, reorganized Docker Compose guidance, and enhanced multi-instance deployment instructions. No code or public entity changes were made.

Changes

File(s) Change Summary
docs/docs/Configuration/configuration-custom-database.mdx Revised and expanded documentation for configuring Langflow to use PostgreSQL, including setup, Docker, and multi-instance deployment instructions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

documentation, lgtm

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-lfoss-1567

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 24, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 24, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
docs/docs/Configuration/configuration-custom-database.mdx (1)

1-4: Add the mandatory description field to the front-matter.

Documentation pages must include at least title and description in the front-matter per the docs guidelines.
Add a concise sentence that summarises the page content.

 ---
 title: Configure an external PostgreSQL database
 slug: /configuration-custom-database
+description: Learn how to replace Langflow’s default SQLite database with PostgreSQL in local and containerised environments.
 ---
🧹 Nitpick comments (3)
docs/docs/Configuration/configuration-custom-database.mdx (3)

7-12: Minor grammar tweak for subject–verb agreement.

“data … is” → “data … are” to agree with the plural noun data.

- In this configuration, all structured application data from Langflow including flows, message history, and logs, is instead managed by PostgreSQL.
+ In this configuration, all structured application data from Langflow — including flows, message history, and logs — are managed by PostgreSQL instead.

24-30: Remove repetitive bullet starters for smoother reading.

Three consecutive bullets begin with “If you’re…”. Re-phrase to vary sentence openings and satisfy the style checker.

-    - If you're running PostgreSQL directly on your machine, use `localhost`.
-    - If you're running PostgreSQL in Docker Compose, use the service name, such as `postgres`.
-    - If you're running PostgreSQL in a separate Docker container with `docker run`, use the container's IP address or network alias.
-    - If you're running a cloud-hosted PostgreSQL, your provider will share your connection string, which includes a username and password.
+    - Local install: use `localhost` as the host.
+    - Docker Compose: use the service name (for example, `postgres`).
+    - Single Docker container (`docker run`): use the container’s IP address or network alias.
+    - Cloud-hosted PostgreSQL: use the provider-supplied connection string that already contains user and password details.

60-61: Fix the stray “c” typo in the persistent-volume sentence.

-Persistent volumes map directories inside of containers to storage on the host machine, so c data survives container restarts.
+Persistent volumes map directories inside containers to storage on the host machine, so data survive container restarts.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b5b9d7e and ce8daf8.

📒 Files selected for processing (1)
  • docs/docs/Configuration/configuration-custom-database.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
docs/docs/**/*.{md,mdx}

📄 CodeRabbit Inference Engine (.cursor/rules/docs_development.mdc)

docs/docs/**/*.{md,mdx}: All documentation content must be written in Markdown or MDX files located under docs/docs/, following the prescribed directory structure for guides, reference, how-to, concepts, and API documentation.
All documentation Markdown and MDX files must begin with a frontmatter block including at least title and description fields.
Use admonitions (:::tip, :::warning, :::danger) in Markdown/MDX files to highlight important information, warnings, or critical issues.
All images referenced in documentation must include descriptive alt text for accessibility.
All code examples included in documentation must be tested and verified to work as shown.
Internal links in documentation must be functional and not broken.
Content must follow the style guide: professional but approachable tone, second person voice, present tense, short paragraphs, sentence case headers, inline code with backticks, bold for UI elements, italic for emphasis, and parallel structure in lists.
Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Files:

  • docs/docs/Configuration/configuration-custom-database.mdx
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/sidebars.js : Sidebar navigation must be updated in docs/sidebars.js to reflect new or reorganized documentation content.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: All terminology such as 'Langflow', 'Component', 'Flow', 'API', and 'JSON' must be capitalized or uppercased as specified in the terminology section.
Learnt from: deon-sanchez
PR: langflow-ai/langflow#9158
File: src/backend/base/langflow/api/v1/mcp_projects.py:404-404
Timestamp: 2025-07-23T21:19:22.567Z
Learning: In langflow MCP projects configuration, prefer using dynamically computed URLs (like the `sse_url` variable) over hardcoded localhost URLs to ensure compatibility across different deployment environments.
docs/docs/Configuration/configuration-custom-database.mdx (4)

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-23T12:46:29.953Z
Learning: When writing documentation for Langflow using Docusaurus, always use professional but approachable tone, second person voice for instructions, and present tense for current features.

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/backend_development.mdc:0-0
Timestamp: 2025-07-18T18:25:54.486Z
Learning: Use SQLite for development and PostgreSQL for production databases

Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/docs/**/*.{md,mdx} : Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Learnt from: deon-sanchez
PR: #9158
File: src/backend/base/langflow/api/v1/mcp_projects.py:404-404
Timestamp: 2025-07-23T21:19:22.567Z
Learning: In langflow MCP projects configuration, prefer using dynamically computed URLs (like the sse_url variable) over hardcoded localhost URLs to ensure compatibility across different deployment environments.

🪛 LanguageTool
docs/docs/Configuration/configuration-custom-database.mdx

[style] ~28-~28: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...service name, such as postgres. - If you're running PostgreSQL in a separate...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~29-~29: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...er's IP address or network alias. - If you're running a cloud-hosted PostgreSQ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-and-deploy

Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Copy link
Copy Markdown
Collaborator

@aimurphy aimurphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions/small comments but overall LGTM. Very helpful and informative.

Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
Comment thread docs/docs/Configuration/configuration-custom-database.mdx Outdated
@github-actions github-actions Bot added the lgtm This PR has been approved by a maintainer label Jul 24, 2025
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 24, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 24, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@SonicDMG SonicDMG temporarily deployed to docs-lfoss-1567 - langflow-manual-install PR #9174 July 25, 2025 13:09 — with Render Destroyed
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 25, 2025

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@mendonk mendonk added this pull request to the merge queue Jul 25, 2025
Merged via the queue into main with commit fe1e45c Jul 25, 2025
15 checks passed
@mendonk mendonk deleted the docs-lfoss-1567 branch July 25, 2025 13:35
2getsandesh pushed a commit to 2getsandesh/langflow-IBM that referenced this pull request Aug 6, 2025
* coming-back

* refresh-postgresql-page

* add-why

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* clarify-example-yml

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants