How to edit postgresql.conf in a docker

Good day. I installed PostgreSQL in my docker using docker-compose, now I want to change:
#logging_collector = ‘on’;
#log_destination = ‘csvlog’;
#log_statement = ‘none’;
#log_checkpoints = on;
#log_connections = on;
#log_disconnections = on;
#log_lock_waits = on;
#log_min_duration_statement = 0;
from their defaults. But /var/lib/postgresql/data where the postgresql.conf is password protected as we all know. So my question is how to edit postgresql.conf in my .yml file?

Thank you