Skip to content

Instantly share code, notes, and snippets.

@Neirda24
Created May 20, 2020 13:39

Revisions

  1. Neirda24 created this gist May 20, 2020.
    1 change: 1 addition & 0 deletions .env
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    NGROK_AUTH=My_auth_token
    23 changes: 23 additions & 0 deletions docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    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'
    8 changes: 8 additions & 0 deletions ngrok.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    region: 'eu'
    log: 'stdout'
    web_addr: '0.0.0.0:4040'
    tunnels:
    my_app:
    proto: 'http'
    addr: 'nginx:80'
    bind_tls: false