Change the active record adapter to postgis

Hello everyone,
I am currently developing an extension that requires the postgis adapter instead of postgresql. For my local development I can simply edit the database.yml.

If I want to use this extension in Docker Deployment, what is the best way to proceed? Can I set the adapter via an environment variable or do I have to monkey patch?

Thank you and best regards from Munich,
Bernhard