“SequelizeConnectionError: self signed certificate in certificate chain” in Kubernetes deployment

Hello there,
we are self hosting Retool using the latest tryretool/backend Container and a postgres DB hosted on Digital Ocean.
The latest deployment failed with the following error message:

[process service types] MAIN_BACKEND, DB_CONNECTOR, DB_SSH_CONNECTOR, JOBS_RUNNER
Failing checking database migrations
---------------------------
-     EXITING RETOOL      -
---------------------------
Error running database migrations: SequelizeConnectionError: self signed certificate in certificate chain

Other Issues suggested passing rejectUnauthorized: false inside dialectOptions.

Any ideas on how to get our Retool running again?

Setting ENV POSTGRES_SSL_REJECT_UNAUTHORIZED=false in the Dockerfile resolved the issue.