cloud storage and local NAS

I am looking for advise for setting up my home network.
I would like to have a cloud service that i can access outside of LAN and i would also like to have a NAS/samba server for my LAN .
I am currently running a dietpi/nextcloud with port forwarding on rp3. Shall i install Samba or OMV along side the Nextloud on the same rp3 or shall i use a different machine to accomplish this. My concern is security and privacy since the rp3 with the nextcloud is accessible from the internet and i do not want that in the case of NAS.

There is no issue to install samba next to NC on your device as Samba will not be reachable from internet as long as you don’t forward samba port to the outside world.