Skip to content

Instantly share code, notes, and snippets.

@fhuitelec
Last active September 1, 2019 15:20
Show Gist options
  • Save fhuitelec/4d43e545d01f6f36086b01d9b291d294 to your computer and use it in GitHub Desktop.
Save fhuitelec/4d43e545d01f6f36086b01d9b291d294 to your computer and use it in GitHub Desktop.
[Docker permanent localtunnel] #docker #docker-compose #localtunnel #slack
# This file must be placed where you run your `docker-compose` command
SUBDOMAIN=yourdomain # Your fully qualified domain without dash
version: '2'
services:
localtunnel:
build:
dockerfile: localtunnel.Dockerfile
context: .
restart: on-failure
command: --local-host bot --port 8888 --subdomain ${SUBDOMAIN}
FROM node:8-alpine
MAINTAINER Fabien Huitelec < fabien at evaneos dot com >
RUN npm install -g localtunnel
ENTRYPOINT [ "lt" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment