https://najigram.com/2022/09/install-nextcloud-with-postgresql-on-ubuntu-22-04/
Install Nextcloud with PostgreSQL on Ubuntu 22.04