title: Enable logging in postgresql using docker-compose
body: <p>I am using Postgres as a service in my docker-compose file. I want logging to log file to be enabled when I do <code>docker-compose up</code>. One way to enable logging is by editing <code>postgres.conf</code> file but it's not useful in this case. One other way is to do something like this </p>
  
  <p><code>docker run --name postgresql -itd --restart always sameersbn/postgresql:10-2 -c logging_collector=on</code></p>
  
  <p>but this isn't useful too cause I am not starting it from an image but as a docker-compose service. Any idea how I can start the docker-compose up with logging enabled in Postgres??? </p>