It would most likley be fine, however IMO hosting a public service on your home network without segregation such as firewall/vlans etc, it can attract people on the internet who will try and break in, you won't have things like DDOS protection either
You'd be best getting a cheap VPS off somewhere like OVH, Linode, Hetzner etc with a public IP and run your instance there, that way it is entirely seperate but also you have options to upgrade system resources for little up front expense
Again, probably fine but I'd not do it personally