I
I
Ilya T2018-04-04 16:31:36
Docker
Ilya T, 2018-04-04 16:31:36

How to forward ngrok to docker (for debugging a bot)?

The application is spinning on a docker on a poppy, it is necessary for local debugging of the bot https address, I tried it through ngrok, it didn’t work:
in the docker composer:

nginx:
        image: nginx:latest
        ports:
            - "8080:80"
            - "443:443"

in the hosts file is
127.0.0.1 site.loc site.loc
:8080 - opens from the browser and displays
./ngrok http site.loc:8080
Session Status                online
Session Expires               7 hours, 31 minutes
Version                       2.2.8
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://7d72e384.ngrok.io -> site.loc:8080
Forwarding                    https://7d72e384.ngrok.io -> site.loc:8080

in the Urals 7d72e384.ngrok.io and https://7d72e384.ngrok.io nothing

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question