Usage: ./pg_config_generator --generate-config-file [--read-custom-config 'specify the custom.config'] tool can genenrate postgresql.conf when you have the custom.conf file in the directory empty or ...
You can use your own config.yaml file as a shared volume or pass the key-values as environment variables. If you do both, only the shared config.yaml file will be considered.