Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Last active April 23, 2016 09:35
Show Gist options
  • Save tuki0918/cba5eb9ad63bbf7632d18dc2a256d55c to your computer and use it in GitHub Desktop.
Save tuki0918/cba5eb9ad63bbf7632d18dc2a256d55c to your computer and use it in GitHub Desktop.
Docker tips

外部ネットワークからアクセス

use: https://ngrok.com/

> $ ngrok http 192.168.99.100:8080

ngrok by @inconshreveable                                                                                                                                               (Ctrl+C to quit)

Tunnel Status                 online
Version                       2.0.25/2.0.25
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://xxxxx.ngrok.io -> 192.168.99.100:8080
Forwarding                    https://xxxxx.ngrok.io -> 192.168.99.100:8080

Connections                   ttl     opn     rt1     rt5     p50     p90
                              2       0       0.01    0.00    3.46    5.01

HTTP Requests
-------------

GET /                          200 OK

basic auth

> $ ngrok http -auth "user:pw" 192.168.99.100:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment