[](https://hub.docker.com/r/wernight/ngrok/) [](https://hub.docker.com/r/wernight/ngrok/) [](http://beta.codenvy.com/f?url=https://github.com/wernight/docker-ngrok 'Start development on Codenvy')
# Supported tags and respective `Dockerfile` links
* [`latest`](https://github.com/wernight/docker-ngrok/blob/master/Dockerfile) [](http://microbadger.com/images/wernight/ngrok "Get your own image badge on microbadger.com")
You simply have to link the Ngrok container to the application under the `app` or `http` or `https` aliases, and all of the configuration will be done for you by default.
Additionally, you can specify one of several environment variable (via `-e`) to configure your Ngrok tunnel:
*`NGROK_AUTH` - Authentication key for your Ngrok account. This is needed for custom subdomains, custom domains, and HTTP authentication.
*`NGROK_SUBDOMAIN` - Name of the custom subdomain to use for your tunnel. You must also provide the authentication token.
*`NGROK_HOSTNAME` - Paying Ngrok customers can specify a custom domain. Only one subdomain or domain can be specified, with the domain taking priority.
*`NGROK_USERNAME` - Username to use for HTTP authentication on the tunnel. You must also specify an authentication token.
*`NGROK_PASSWORD` - Password to use for HTTP authentication on the tunnel. You must also specify an authentication token.
*`NGROK_PROTOCOL` - Can either be `HTTP` or `TCP`, and it defaults to `HTTP` if not specified. If set to `TCP`, Ngrok will allocate a port instead of a subdomain and proxy TCP requests directly to your application.
*`NGROK_PORT` - Port to expose (defaults to `80` for `HTTP` protocol). If the server is non-local, the hostname can also be specified, e.g. `192.168.0.102:80`.
*`NGROK_BINDTLS` - Toggle tunneling only HTTP or HTTPS traffic. When `true`, Ngrok only opens the HTTPS endpoint. When `false`, Ngrok only opens the HTTP endpoint