Connection terminated unexpectedly error

Hello,

I installed the latest version of NocoDB via Caprover. It uses a Postgres database on the same host.
If I leave a page opened for a few minutes, then any operation results in the connection error:

If I reload the page everything works fine.

Docker for NocoDB:

docker run 
--name=srv-captain--xxxxxxxxxx.1.74sxxxxxxxxxxxxxxxxb0u8ms 
--hostname=xxxxxxxxxxxx 
--env='NC_DB=pg://server:5432?u=postgres&p=xxxxxxxxxxxxxxxx&d=postgres' 
--env=DATABASE_URL= 
--env=NC_PUBLIC_URL=https://xxxxxxxx.com
--env=NC_AUTH_JWT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
--env=NC_SENTRY_DSN= 
--env=NC_CONNECT_TO_EXTERNAL_DB_DISABLED= 
--env=NC_DISABLE_TELE=1 
--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
--env=NC_DOCKER=0.6 
--env=NODE_ENV=production 
--env=PORT=8080 
--env=NC_TOOL_DIR=/usr/app/data/ --workdir=/usr/src/app 
--expose=8080

Docker for PG:

docker run 
--name=srv-captain--xxxxxxxxxxxxx.1.xxxxxxxxxxecwd8erjww8bi4q 
--hostname=xxxxxxxxxxxx 
--env=POSTGRES_USER=postgres 
--env=POSTGRES_PASSWORD=xxxxxxxxxxxxxxxx 
--env=POSTGRES_DB=postgres 
--env=POSTGRES_INITDB_ARGS= 
--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/15/bin 
--env=GOSU_VERSION=1.16 
--env=LANG=en_US.utf8 
--env=PG_MAJOR=15 
--env=PG_VERSION=15.1-1.pgdg110+1 
--env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data 
--expose=5432

Are you able to do any operations within the first few minutes the page is opened?

Yes and it looks like if I do something with no pause, everything works fine.

I assume a ‘keep-alive’ value should be set somehow for the PG connection, but I couldn’t find anything about it in the docs.