How to add ifconfig alias for postgres for docker usage (pg on host machine) (macOS)
Published in 2018-01-13 08:49:33Z
I'm trying to add 127.0.0.2 and another IP for postgres, but it seems not to be working.
If I telnet to 127.0.0.1 5432 everything is ok, also psql is connecting.
But if I use alias created with ifconfig I'm getting connection refused on my host machine as well as from docker container. Alias IP is available, though. So I guess I need to add ports to my alias or something?