外部连接postgres

本文最后更新于 2023年11月25日。

配置好traefik代理后用dbeaver连接报错

尝试连线已失败。
  Connection reset
  Connection reset

需要修改配置文件:(PostgreSQL安装路径下的data,也是安装时data的默认路径)data目录下的 pg_hba.conf 和 postgresql.conf

找到“# IPv4 local connections:“后,回车另起一行,添加参数行如下,保存。
host all all 0.0.0.0/0 trust

traefik的日志在容器的/gateway/log文件夹。