title: Docker: connection between golang webapp and postgres server refused
body: <p>I can't connect my Postgres container with my golang webapp container.</p>
  
  <p>i got following error:</p>
  
  <p><code>panic: dial tcp [::1]:5432: getsockopt: connection refused</code></p>
  
  <p>My docker compose file:</p>
  
  <p><a href="http://pastebin.com/5LQfn3gy" rel="nofollow noreferrer">http://pastebin.com/5LQfn3gy</a></p>
  
  <p>Any idea how i can fix that? </p>