Skip to content

Instantly share code, notes, and snippets.

@omarlopesino
Last active January 28, 2019 16:58
Show Gist options
  • Save omarlopesino/037af5e821281059b3cda8fb2dbbd6ea to your computer and use it in GitHub Desktop.
Save omarlopesino/037af5e821281059b3cda8fb2dbbd6ea to your computer and use it in GitHub Desktop.
Docker compose Ngrok sample
version: '2'
services:
ngrok:
container_name: nginx_ngrok
image: wernight/ngrok
links:
- jenkins
environment:
#- NGROK_AUTH=<>
#- NGROK_SUBDOMAIN=<>
- NGROK_REGION=eu
- NGROK_PORT=nginx:80
- NGROK_DEBUG=1
#- NGROK_USERNAME=username
#- NGROK_PASSWORD=pasword
ports:
- '4040:4040'
#!/bin/bash
curl localhost:4040/api/tunnels | grep "public_url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment