Skip to content

Instantly share code, notes, and snippets.

@stmcallister
Created August 5, 2024 19:03
Show Gist options
  • Save stmcallister/c087ea1640d59f101172b7682f42d7b1 to your computer and use it in GitHub Desktop.
Save stmcallister/c087ea1640d59f101172b7682f42d7b1 to your computer and use it in GitHub Desktop.
Example of using ngrok in a docker-compose.yaml file.
services:
static-site:
image: dockersamples/static-site
build: .
ports:
- "80:80"
restart: always
ngrok:
image: ngrok/ngrok:latest
command: http http://host.docker.internal:80 --domain=scott-docker.ngrok.pizza
environment:
NGROK_AUTHTOKEN: ${NGROK_AUTHTOKEN}
ports:
- "5141:5140"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment