Skip to content

Trouble connecting to Docker Postgres DB from host system #3190

Discussion options

You must be logged in to vote
  1. Same as 2 but adding port mapping instead:
services:
  plausible_db:
    image: postgres:14-alpine
+   ports:
+     - 5432:5432
    ...etc...

And connecting to it from the host

$ psql -h localhost -p 5432 -U postgres

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ruslandoga
Comment options

@ruslandoga
Comment options

Answer selected by phlbnks
@ruslandoga
Comment options

@phlbnks
Comment options

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