/docker-ngrok

Deploy ngrok server and build client use docker

Primary LanguageShell

DOCKER NGROK IMAGE

BUILD IMAGE

git clone https://github.com/hteen/docker-ngrok.git
cd docker-ngrok
docker build -t hteen/ngrok .

RUN

  • you must mount your folder (E.g /data/ngrok) to container /myfiles
  • if it is the first run, it will generate the binaries file and CA in your floder /data/ngrok
docker run -idt --name ngrok-server \
-v /data/ngrok:/myfiles \
-e DOMAIN='tunnel.hteen.cn' hteen/ngrok /bin/sh /server.sh