Zijn er nog andere locaties waar de databaseverbinding IP / hostname is ingesteld, anders dan DISCOURSE_DB_HOST in app.yml?

Make sure you follow Running Discourse with a separate PostgreSQL server.