title: How to use pgAdmin to connect postgresql image on a docker container?
body: <p>I just cloned a project from GitHub and in the readme file it asks me to run <code>docker-compose up</code> to run the PostgreSQL image...</p>
  
  <p>I assume that after I run the command, the PostgreSQL server image will start in the Docker container on my pc using port 5432. Then I run <code>npm install</code> and <code>npm start</code> to start the project (the database tables will be automatically created using an ORM framework). However, when I open my pgAdmin to connect to the server, it says it successfully connected but I could not find those tables created. Here I guess the pgAdmin didn't connect the PostgreSQL server (Docker image) on 5432... So my question is whether it is possible to use pgAmin installed in my local pc to connect to the PostgreSQL server Docker image which is already running, mapping to the port 5432 of my local PC?</p>