ok since ive been screaming about this all afternoon, if any 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

Enter discipleship

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.


Sign in to participate in the conversation

A witchy space for most any face! Whether a witch or a witch-respecter, join the coven that is free of fash, TERFs, feds, and bigots