Enable client authentication in pg_hba.conf
host all all 0.0.0.0/0 md5
Allow TCP/IP connection in postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on;
Need to restart the service after edit the postgresql.conf
systemctl status postgresql-inst1
Configure firewall-cmd
firewall-cmd --zone=public --add-port=7001/tcp --permanen
firewall-cmd --reload
Test connecting with pgadmin3