Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nirui
· 5y ago · 0 comments
I saw nobody mentioning Docker here, so just a reminder: If you do `-p 5432:5432`, there is no different than listening `0.0.0.0`.
Comments
[–]
jhardy54
5y ago
Right, which is why it’s absolutely critical to bind to 127.0.0.1 instead of 0.0.0.0 in your docker / docker-compose config.