How do I connect a managed database via SSL?

I want to connect my Mautic instance to a managed database on Digital Ocean. It is mandatory to connect via SSL and they supply a certificate for that. Just I do not see how to connect my Mautic 4 instance to a database via SSL. I am using the docker image, and there seems to be no environment parameters to configure that. In the Mautic documentation there alre also no hints on how to create a SSL database connection. Any hints on how to do that?