title: docker postgres pgadmin local connection
body: <p>I have created an ubuntu image with nginx, php and postgres.</p>
  
  <p>I want to connect the postgres database in my current image with <code>pgadmin</code> located on my local machine. </p>
  
  <p>I have tried using docker inspector to try to use the image ip to make a connection with my local pgadmin but without much success. I've also tried configuring some ports on local to make connection work.</p>