Never had issues setting up Nextcloud with Podman, but on 3 occasions I tried to integrate OnlyOffice with it and couldn't get it to work.
In the end, I simply dropped both of them because the whole idea was to have an editor with it. I decided to go with the approach where I use Syncthing to sync my documents folder to multiple machines and my phone, and edit using LibreOffice on each machine.