This repository provides a Dockerfile for extending the official PostgreSQL debian-based Docker image, with the installation of the RDKit cartridge.
Example command to build the image:
docker build -f Dockerfile --build-arg postgres_image_version="12.17-bullseye" --build-arg postgres_version=12 --build-arg rdkit_git_ref=Release_2023_09_6 --tag rdkit-postgres-12-rdkit_2023_09_6:latest .
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.