wernight / docker-ngrok

An Ngrok v2 container based on wizardapps/ngrok and fnichol/ngrok
https://hub.docker.com/r/wernight/ngrok/
MIT License
456 stars 143 forks source link

Updating NGROK docker and other questions #53

Open aptonline opened 4 years ago

aptonline commented 4 years ago

I've just come across this project and it has the potential to solve a problem I have with exposing my web services (running on a Synology NAS) while using a CGNAT Internet connection (4G) but I have a number of questions/issues.

I've noticed the version of ngrok in the docker image is out of date and the cli gives me an option to updateupdate available (version 2.3.35, Ctrl-U to update) .Performing an update however fails due to permissions errors. My first question can an update be performed via changing permissions someway or is there plans to make an updated version of docker-ngrokavailable?

Secondly is there a way to run multiple tunnels using one instance of the docker-ngrok container? As mentioned above I'd like to expose a number of local services and while I can easily expose one service my changing the environmental settings having the ability to expose multiple would be very handy.

Also I've attempted to expose the path/volume to the ngrok.yml (as per https://github.com/wernight/docker-ngrok/issues/22#issuecomment-421336873) so that I can edit direct but my docker container restarts each time and the log states: /entrypoint.sh: line 36: can't create /home/ngrok/.ngrok2/ngrok.yml: Permission denied

Below is my config:

Screenshot 2020-05-19 at 12 25 41

Help with any of the above would be most grateful.

Neirda24 commented 4 years ago

Hi @aptonline . I had the same need here is what I did: https://gist.github.com/Neirda24/0e43bb3dedb0cf2c9ac8538dcd74f4f1

I am not using the environment variables.

Regardind the Update didn't try yet.