skip to Main Content

I’m follow up with this repo and try to connect psql from my local machine to Postgresql on docker image after running docker compose up -d but I got this error
enter image description here

I tried with adminer portal that come along with repo and it can be connected successfully with service name postgres and the same credentials
enter image description here

  • I guess port mapping is good, here is the result from docker container ls
    enter image description here

  • tried to use 127.0.0.1 or postgres instead of localhost but no luck

2

Answers


  1. The default user in pg db is postgres (not root).

    Try postgres as username

    Login or Signup to reply.
  2. Assuming you didn’t change anything in the env-example or .env files, you should be able to authenticate with the following values:

    System: PostgreSQL
    Server: postgres
    Username: root
    Password: secret
    Database: api
    

    Here is a video showing a successful login.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search