mirror of
https://github.com/ngrok/docker-ngrok.git
synced 2026-05-17 16:50:40 +00:00
add readme
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# ngrok agent docker image
|
||||
|
||||
## Introduction
|
||||
|
||||
This repository contains code related to building and releasing the [ngrok docker image][ngrok-dockerhub]
|
||||
|
||||
Please visit [ngrok's website][ngrok] for more information on what ngrok is.
|
||||
|
||||
The [ngrok agent docs page][ngrok-docs] has more information on how to use the ngrok agent.
|
||||
|
||||
## Usage
|
||||
|
||||
Run an ngrok agent pointed at localhost:80
|
||||
|
||||
```bash
|
||||
docker run --net=host -it ngrok/ngrok http 80
|
||||
```
|
||||
|
||||
Access the web inspector on the host machine at localhost:3000
|
||||
|
||||
```bash
|
||||
docker run -it --p 3000:4040 ngrok/ngrok http 80
|
||||
```
|
||||
|
||||
Run the ngrok agent with auth token 'xyz'
|
||||
|
||||
```bash
|
||||
docker run -it e NGROK_AUTHTOKEN=xyz ngrok/ngrok:alpine http 80
|
||||
```
|
||||
|
||||
Run the ngrok agent with the config file './ngrok.yml' from the host machine
|
||||
|
||||
```bash
|
||||
docker run -it -v $(pwd)/ngrok.yml:/etc/ngrok.yml -e NGROK_CONFIG=/etc/ngrok.yml ngrok/ngrok:alpine http 80
|
||||
```
|
||||
|
||||
## Tags
|
||||
|
||||
described [here][ngrok-dockerhub]
|
||||
|
||||
[ngrok-dockerhub]: https://hub.docker.com/r/ngrok/ngrok
|
||||
[ngrok]: https://ngrok.com/
|
||||
[ngrok-docs]: https://ngrok.com/docs
|
||||
Reference in New Issue
Block a user