I’m making a point about Docker + Ubuntu though Docker can be installed on almost any OS. Ubuntu works very well with Docker-compose which is what is covered in this video. I also tried Alpine, Linux Mint, and Fedroa Silverblue (podman and podman-compose on that), and all had issues. When following essentially the default install I believe Ubuntu is really the tried and true so went to that for ease.
More info on the blog: https://opensourcetechtrn.blogspot.com/2021/07/nextcloud-in-docker.html
Download This Video