Skip to content

Instantly share code, notes, and snippets.

@FlandreDaisuki
Last active May 15, 2022 10:35
Show Gist options
  • Save FlandreDaisuki/b27d21c75fe20ee7113c8db8ead2a451 to your computer and use it in GitHub Desktop.
Save FlandreDaisuki/b27d21c75fe20ee7113c8db8ead2a451 to your computer and use it in GitHub Desktop.
docker-compose -f one-time-ngrok.yml up
version: '3.7'
services:
http-server:
container_name: http-server
image: python:alpine
working_dir: /root
volumes:
- $PWD:/root:ro
command: python -m http.server ${HTTP_SERVER_PORT:-24680}
reverse-proxy:
container_name: reverse-proxy
image: node:lts-alpine
command: npx localtunnel --local-host http-server --port ${HTTP_SERVER_PORT:-24680}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment