Open
Description
Hi,
I find it harder than it should be to customize postgresql.conf:
- usually PGDATA is bind mounted so it’s not always easy to add a file in there at the right time (or replace a file)
- there’s options with /docker-entrypoint-initdb.d scripts but those are executed only when the database does not exists
so I suggest to add an include_dir
configuration in the default postgresql.conf
in the Dockerfile, where listen_addresses
is added, something along mkdir /docker-postgres-conf.d/ && echo 'include_dir=/docker-postgres-conf.d/' >> /usr/share/postgresql/postgresql.conf.sample
I believe this would be really useful, comes with no BC break and low maintenance
what do you think ?
(might be related to #581)