sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.88k stars 2.14k forks source link

Postgresql config file changes overwritten by container somehow. Undesirable side-effects, ie logging. #1307

Open otheus opened 7 years ago

otheus commented 7 years ago

I would prefer that postgresql log directly to files using its own CSV format and rotation. This is best implemented with:

logging_collector = on
log_destination = 'csvlog'
log_filename = '%F.log'

Every time the container is restarted, the log_filename parameter is overwritten. I tried adding the parameter a second time, but then both were overwritten. This is undesirable behavior.

IMHO, whatever mechanism overwrites the file should instead do it only once or only if the file is not newer than some kind of initial initialize file (ie, postgresql.auto.conf)

otheus commented 7 years ago

Work-around:

Make sure the line "include postgresql-local.conf" exists, and that this file also exists (or empty).

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.