0

我可以通过 ip 或 localhost 在我的本地服务器窗口中连接我的 docker postgresql。当我尝试从我的个人窗口远程连接它时,出现超时错误。考虑5432端口被阻塞或没有监听。 码头工人-compose.yml Dockerfile

我已经更改了 pg_hba.conf 和 postgresql.conf 文件以进行远程连接,并且还检查了防火墙,但它被禁用了。

postgresql.conf

pg_hba.conf

ufw_status

4

1 回答 1

0

Answer is I should have checked my server's firewall conf also, just dockerVM is not enough :)

于 2021-09-14T16:07:44.060 回答