I just discovered that this container binds itself to 0.0.0.0:5432 instead of 127.0.0.1:5432. I'm not sure this is intended behavior; I guess only other containers should be able to connect to the database, not the entire world. The fix is easy, in commands, line 95, change docker run -p 5432:5432 ... to docker run -p 127.0.0.1:5432:5432 ....
I just discovered that this container binds itself to 0.0.0.0:5432 instead of 127.0.0.1:5432. I'm not sure this is intended behavior; I guess only other containers should be able to connect to the database, not the entire world. The fix is easy, in commands, line 95, change
docker run -p 5432:5432 ...
todocker run -p 127.0.0.1:5432:5432 ...
.