-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when docker-compose #1
Comments
There is no |
If I don't set it then the ngrok command does not execute appropriately. In looking at the entrypoint.sh script I believe it is this portion that is hanging me up:
|
If I don't set it then the ngrok command does not execute appropriately. In looking at the entrypoint.sh script I believe it is this portion that is hanging me up: if [ -n "$HTTPS_PORT" ]; then
FWD="`echo $HTTPS_PORT | sed 's|^tcp://||'`"
elif [ -n "$HTTP_PORT" ]; then
FWD="`echo $HTTP_PORT | sed 's|^tcp://||'`"
elif [ -n "$APP_PORT" ]; then
FWD="`echo $APP_PORT | sed 's|^tcp://||'`"
fi Maybe it is because I am using the newer 1.7 docker-compose and 1.11 docker? |
I forgot why this is there but it works without, just following the README. Can also use host:
|
Added |
This was tripping me out for a while, until I realized that "NGROK_PORT" can also have a container alias.
|
@artpi saved my day. |
Great job, so tiny image! But please add this |
Would you like to suggest a pull-request for the README change? As a user, you're in the best place to know how it could be worded. |
Using docker compose would also work without environment variables when you put the container in the same network:
|
Since "links" is legacy feature, I'd rather use "networks" especially since “links” doesn't work for me This way works for me:
|
When using docker compose I have to set the HTTP_PORT as an environment variable and it will not map to the linked host.
Am I missing something? If I add the HTTP_PORT things get connected but ngrok complains it can't forward to localhost:80
The text was updated successfully, but these errors were encountered: