N8n on cyberpanel with Postgres

Continuing the discussion from Install N8n.io on Docker in cyberpanel:
Which worked like a charm.

How one should adapt this to use Postgres instead of mariaDB (since it is deprecated in n8n)?
Thanks !