How to connect to the database externally under discourse container deployment method, for example using DBeaver

In the discourse container deployment method, how to connect to the database externally, for example using DBeaver to connect

You’d need to look at the two-container setup, or find some other way to assign a password to the Discourse user and expose the postgres port, something like

expose:
  - "80:80"   # http
  - "443:443" # https
  - "127.0.0.1:5432:5432"

But what problem are you solving? Maybe just use Discourse Data Explorer.

2 Likes

Thank you very much, I will try this plugin.