It is also possible. But it is more complex. And the public IP is not yours, it is from the operator, and it will change periodically. If you define very strict rules on your router you will not have any major problems. One option that may be of interest is Umbrel. It comes with everything ready.


Umbrel - Personal home cloud and OS for self-hosting
Bring the cloud to your home with umbrelOS - a beautiful home server OS for self-hosting, and Umbrel Home - a plug-and-play home server. Install Ne...