Skip to content

Expose Postgres port in docker-compose for connecting via a DB viewer client #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MareStare
Copy link
Contributor

No description provided.

@Meow
Copy link
Member

Meow commented May 21, 2025

What's wrong with psql? I don't like the idea of exposing this port because I sometimes have services running on my machine which already use that port (a persistent postgres database for personal experiments)...

Perhaps we could use docker compose profiles?

@MareStare
Copy link
Contributor Author

MareStare commented May 21, 2025

What's wrong with psql?

psql is TUI, while I prefer a GUI solution (especially built-in to VSCode) that always shows you the list of tables on the left that ou can quickly navigate through, provide syntax highlighting, autocompletion (not just basic SQL syntax but table names, and column names), error squiggles etc.

I've changed the default port number for postgres to 5400, with the override configurable via a .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants