Connect to remote PostgreSQL server

Hello,
I’m trying to setup my GrampsWeb installation in order to use a remote PosgreSQL server. Currently grampsweb server is installed via docker compose on a VM. The SQLlite DB is saved on a NAS trough a shared folder.
Unfortunatelly this solution give some lag on retrieving information (it is common that GrampsWeb goes into timeout while retrieving some data). To try to speedup things, I wanted to switch to PostgreSQL, on a remote server. I set up the server, but now I have to find a way to make vm-docker gramps to use it. How can I do that? How can I configure the remote address in Grampsweb docker file?
Thank you
Luca

Hi,
the Gramps Web Dockerfile does not contain a remote address. The address is contained in the settings.ini in the Gramps database dir. This is actually a Gramps core thing. You can even set up the Postgres tree with Gramps Desktop.

There is also a postgres_host config option (which I realize is not document :scream:) but this is only used for creating new trees via the API in a SharedPostgreSQL + multi-tree setup.

Thank you for the reply. I admit I don’t understand the compexity behind Gramps/Gramps Web,yet. For instance, I don’t undertand the interaction between Gramps Web and Gramps “core”. For example: when you install Gramps Web with docker, you also install part of the “core” feature?
If this is the case, would it be theoretically possible to modify the ini file to access the PostgreSQL remote server? How difficult would be to implement some environment variables in the Dockerfile to expose these variables?