chore: make Postgres host port configurable via POSTGRES_PORT#18
Merged
chore: make Postgres host port configurable via POSTGRES_PORT#18
POSTGRES_PORT#18Conversation
Contributor
|
Right now the docs say |
Co-authored-by: Cursor <cursoragent@cursor.com>
BhagyaAmarasinghe
approved these changes
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Makes the Postgres host port configurable so developers can avoid port conflicts (e.g. with the main Formbricks app) without changing shared config. Also updates the README for setup and environment variables.
Configurable Postgres port
"${POSTGRES_PORT:-5432}:5432"so the host port is controlled by env and defaults to 5432.POSTGRES_PORTand notes thatDATABASE_URLmust use the same port when overriding.POSTGRES_PORTand its relation toDATABASE_URL. Troubleshooting added for port-already-in-use: setPOSTGRES_PORTin.env, keepDATABASE_URLin sync, thenmake docker-up.DATABASE_URLandPOSTGRES_PORTinstead of the hardcoded port 5433.README: Go and PATH
PATH; added link to “Adding Go to PATH” and verification withgo version.POSTGRES_PORTandDATABASE_URL).export PATH="..."line for macOS/Linux (bash/zsh), a note for the Go version manager, and verification withwhich go.Default behaviour is unchanged (port 5432). To use another port, set
POSTGRES_PORTand the same port inDATABASE_URLin your local.envonly.