"Your local changes.... templates/postgres.template.yml"

My database server is the same as Discourse, I used the official install guide to install Discourse