Thanks,
I checked the config/config.json - is the mattermost client using this settings?:
"SqlSettings": {
"DriverName": "postgres",
"DataSource": "postgres://mattermost:XXX@127.0.0.1:5432/mattermost?sslmode=disable\u0026connect_timeout=10",
"DataSourceReplicas": [],
"DataSourceSearchReplicas": [],
"MaxIdleConns": 20,
"ConnMaxLifetimeMilliseconds": 3600000,
"ConnMaxIdleTimeMilliseconds": 300000,
"MaxOpenConns": 300,
"Trace": false,
"AtRestEncryptKey": "jksksj85pzbomhs3ockhrzynpgh8ox34",
"QueryTimeout": 30,
"DisableDatabaseSearch": false,
"ReplicaLagSettings": []
}