Created
August 5, 2024 19:03
-
-
Save stmcallister/c087ea1640d59f101172b7682f42d7b1 to your computer and use it in GitHub Desktop.
Example of using ngrok in a docker-compose.yaml file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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