ok since ive been screaming about this all afternoon, if any #mastoadmin are going bonkers trying to figure out how to give your pgsql a custom config, here you go
basically all you have to do is make your docker-compose.yml look like this
of course make sure you like, have a custom config file at postgres/postgresql.conf or change the first part of that volumes command to point to wherever yours is but next time you build/restart it will load that config file.
this differs from the standard config in that it adds a volume to mount your custom config file:
- ./postgres/postgresql.conf:/etc/postgresql.conf
and then adds a command to use that config file instead of the default:
command: postgres -c config_file=/etc/postgresql.conf
of course make sure you like, have a custom config file at postgres/postgresql.conf or change the first part of that volumes command to point to wherever yours is but next time you build/restart it will load that config file.
PHEW!!!!