how use ngrok running inside docker
If you wish use ngrok, but dont want to install another system app, you can run it using docker.
Steps
go to: https://dashboard.ngrok.com/get-started/your-authtoken
copy the auth token
-
run the below command line with the appropriate
<TOKEN>(from the above step) and<PORT>of the running app:docker run -it -e NGROK_AUTHTOKEN=<TOKEN> --add-host=host.docker.internal:host-gateway ngrok/ngrok http host.docker.internal:<PORT>please note that you should add
host.docker.internaland use it instead of127.0.0.1orlocalhostfor your host copy the provided url and share your app