Forum crashes after upgrading from 2.4.0

PostgreSQL 9.5!? Damn that is old.

Can you please copy and paste here the first lines of the /var/discourse/containers/app.yml file?