Skip to content

Instantly share code, notes, and snippets.

@Neirda24
Created May 20, 2020 13:39
Show Gist options
  • Save Neirda24/0e43bb3dedb0cf2c9ac8538dcd74f4f1 to your computer and use it in GitHub Desktop.
Save Neirda24/0e43bb3dedb0cf2c9ac8538dcd74f4f1 to your computer and use it in GitHub Desktop.
NGROK_AUTH=My_auth_token
version: '3.7'
services:
nginx:
# some stuff
ngrok:
image: 'wernight/ngrok:latest'
command: ['ngrok', 'start', '--all', '-authtoken=${NGROK_AUTH:?}']
ports:
-
published: '4040'
target: '4040'
protocol: 'tcp'
mode: 'host'
volumes:
-
type: 'bind'
source: './ngrok.yml'
target: '/home/ngrok/.ngrok2/ngrok.yml'
consistency: 'delegated'
read_only: true
tty: true
container_name: 'ngrok'
region: 'eu'
log: 'stdout'
web_addr: '0.0.0.0:4040'
tunnels:
my_app:
proto: 'http'
addr: 'nginx:80'
bind_tls: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment