pgSQL root access - without? (docker)

Hi guys.
I’m trying to have Discourse to use already up&running, a remote pgSQL server (over which I don’t have admin control, though I can talk to the admin)
Question - is it possible, while deploying with/in Docker container, to set up Discourse without giving out pgSQL root/admin?
Are there any consideration in such a scenario?
many thanks, L.

What do you mean by “pgSQL root” ?

The PostgreSQL user supplied to Discourse doesn’t need to be a “SUPERUSER” as long as your prepare it before hand as documented in Running Discourse with a separate PostgreSQL server

1 Like

Does the same apply when deploying in docker?
Can we, in docker, when deploying also tell Discourse to use external both pgSQL and Redis?
many thanks, L.

Yes You can do that by defining the external Postgres & redis parameters in the yml refer Running Discourse with a separate PostgreSQL server

1 Like