This repository provides a Dockerfile for extending the official PostgreSQL debian-based Docker image, with the installation of the RDKit cartridge.
For everything related to how to run postgres, you should be able to just refer to the documentation for the upstream image.
For everything related to how to use the RDKit cartridge, you can refer to the related documentation.