Skip to content

Modify PG_DATABASE_URL to include PG_DATABASE_NAME - #24091

Open
pwntr wants to merge 1 commit into
twentyhq:mainfrom
pwntr:patch-2
Open

Modify PG_DATABASE_URL to include PG_DATABASE_NAME#24091
pwntr wants to merge 1 commit into
twentyhq:mainfrom
pwntr:patch-2

Conversation

@pwntr

@pwntr pwntr commented Aug 12, 2026

Copy link
Copy Markdown

Updated PG_DATABASE_URL to use PG_DATABASE_NAME variable.

Review in cubic

Updated PG_DATABASE_URL to use PG_DATABASE_NAME variable.
Copilot AI lite review requested due to automatic review settings August 12, 2026 19:31
@twenty-ci-bot-public

Copy link
Copy Markdown

👋 Thanks for contributing to Twenty! We're excited to have you on board.

Your PR has been set to draft while you work on it. Once you're done, mark it as Ready for review and our automated checks will run.

By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Docker Compose configuration for the Twenty stack so the Postgres connection string (PG_DATABASE_URL) derives its database name from PG_DATABASE_NAME, aligning runtime connectivity with the database container’s POSTGRES_DB setting.

Changes:

  • Use ${PG_DATABASE_NAME:-default} as the database path segment in PG_DATABASE_URL for the server service.
  • Use ${PG_DATABASE_NAME:-default} as the database path segment in PG_DATABASE_URL for the worker service.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@greptile-apps

greptile-apps Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR makes the Docker Compose server and worker database URLs honor PG_DATABASE_NAME, retaining default as the fallback.

  • Keeps the server and worker connected to the same configurable database.
  • Matches the existing Postgres service initialization setting.

Confidence Score: 5/5

The PR appears safe to merge with no actionable issues identified.

The server, worker, and Postgres service resolve the same database name, while the existing default behavior remains unchanged when the variable is unset.

Important Files Changed

Filename Overview
packages/twenty-docker/docker-compose.yml Parameterizes the database-name segment of both application connection URLs consistently with the Postgres service configuration.

Reviews (1): Last reviewed commit: "Modify PG_DATABASE_URL to include PG_DAT..." | Re-trigger Greptile

@github-actions

Copy link
Copy Markdown
Contributor

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against a6d08b8

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants