Locally deploy frappe project created in docker

i want to host a project locally to be accessible to my friends, i have run frappe in docker container.

That’s a bit dangerous since you’ll be exposing your personal device to the whole internet essentially. Use a server if you want it accessible by your friends

how to export or publish my custom app?

Upload it to a Github repository and use get-app to install it on whatever computer you want to install your custom app

what are the files and folders required to be uploaded in Github.
I have uploaded my initialized bench and tried to get the app to install from another PC but could not get it

Everything inside your apps/app_name folder. No need for the initialized bench. Just set that up normally on the other computer

To use custom apps in containers follow Frequently Asked Questions · frappe/frappe_docker Wiki · GitHub