Install Discourse on Ubuntu or Debian for Development

I’m setting up dev environment on Ubuntu (WSL2) and I installed PostgreSQL using asdf. now db:create complains that socket can’t be found at path /tmp/.s.PGSQL.5432. But for me the socket is at /var/run/postgresql/.s.PGSQL.5432. Where can I configure correct path? discourse.config doesn’t seem to have any effect.