Did you have a look inside the database to check whether all ERPNext data is still there?
If yes, you can make a backup, create a new site, install frappe and erpnext, then restore the backup into the new site.
(Also, please consider to create a DNS A-Record for your server IP and setup let’s encrypt. You don’t want everybody on the network to know your company data.)