HUB
Sign inSign up

stellarhub/ngrok

By stellarhub

•Updated over 5 years ago

Image
0

254

stellarhub/ngrok repository overview

This is an image for ngrok which you can run to expose your local machine, or to expose a docker network from a docker compose.

⁠To expose port 80 on your machine

docker run -d --rm -p 4040:4040 -e PORT=80 -e REGION=ap -e TARGET_HOST=<your machine IP> stellarhub/ngrok
This will expose your machine port 80 via a public ngrok http URL

⁠To use in docker-compose.yaml

If you need to specify an authentication token for ngrok, please create a .env file with variable name TAG TAG=xxx_your_token_xxxxx

  ngrok:
    image: stellarhub/ngrok:latest
    ports:
      - 4040:4040
    environment:
      - TARGET_HOST=app
      - PORT=80
      - REGION=ap
      - SUBDOMAIN=uniquename
      - AUTHTOKEN=${TAG}
    networks:
      - YourComposeNetwork
Environment variableDescription
TARGET_HOSTYour target hostname. If used in docker compose, this is the service name. Default 0.0.0.0
REGIONap default: us
AUTHTOKENYour ngrok authentication. You should use a .env file and ${TAG} in docker-compose.yaml
SUBDOMAINSpecify an unique domain for ngrok. You must apply AUTHTOKEN to use SUBDOMAIN
PORTThe target port. Default 80

Tag summary

Content type

Image

Digest

Size

13.9 MB

Last updated

over 5 years ago

docker pull stellarhub/ngrok