Giter Club home page Giter Club logo

Comments (12)

wernight avatar wernight commented on August 15, 2024

May be you'd like to start a WiKi page? I've enabled it.

from docker-ngrok.

walidshaari avatar walidshaari commented on August 15, 2024

I got the same error, i changed the command from the example to the below:

docker run --rm -d -p 4040 --link www:http --name www_ngrok wernight/ngrok ngrok http http:80

from docker-ngrok.

leewynne avatar leewynne commented on August 15, 2024

@bkuhl could you explain a little more on the following based on your solution?

env_file: .env
environment:
NGROK_PORT: web:80

from docker-ngrok.

devkinetic avatar devkinetic commented on August 15, 2024

NGROK_LOOK_DOMAIN should be what is used for this, but it doesn't work. Currently, using the workaround @bkuhl provided is working.

if [ -n "$NGROK_LOOK_DOMAIN" ]; then
  ARGS="$ARGS `echo $NGROK_LOOK_DOMAIN:$NGROK_PORT | sed 's|^tcp://||'`"
else
  ARGS="$ARGS `echo $NGROK_PORT | sed 's|^tcp://||'`"
fi

from docker-ngrok.

bkuhl avatar bkuhl commented on August 15, 2024

@madebylee Basically that's saying to read environment variables from .env, but override what's in that file with what's specified in environment.

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@bkuhl , should we use .env here ? or is it ok not to have ?, if ever what's inside in the .env ?

Thank you in advance

ngrok:
image: wernight/ngrok
links:
- web:http
ports:
- "4040:4040"
env_file: .env

from docker-ngrok.

bkuhl avatar bkuhl commented on August 15, 2024

@ezekel You should be able to use the env_file directive there just fine.

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@bkuhl , I rebuild my docker , my question after I rebuild is there a command to run so that it will expose now to internet ?

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@ezekel You should be able to use the env_file directive there just fine.

Ok I will rebuild again. thank you fro the quick reply

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@bkuhl, I'm done rebuilding my docker, what command to run for ngrok ?

Thank you in advance

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@bkuhl by the way is this will work in my local I used host in windows. then I access my app like this myapp.local, is this will work in ngrok too ?

from docker-ngrok.

ezekel avatar ezekel commented on August 15, 2024

@wernight , can I ask please what command I will run so that it will generate ngrok url

Thank you in advance

from docker-ngrok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.