
로컬 환경에서 가상 머신에 Jenkins나 gitlab을 사용할 때, 공개 서버로 url을 제공해주는 터널링 프로그램.
macOS 기준
brew install ngrok/ngrok/ngrok
ngrok config add-authtoken <token>
ngrok http http://192.168.60.1:8080
ngrok http http://localhost:8082
여러 형태로 사용 가능!
nohup ngrok http 192.168.60.1:8080 &
version: '3'
services:
ngrok:
image: ngrok/ngrok:latest
ports:
- "4040:4040"
environment:
- NGROK_AUTHTOKEN=your_auth_token
command: "http host.docker.internal:8081"
restart: unless-stopped
version: "2"
authtoken : 발급 받은 토큰
tunnels:
server:
proto: tcp
addr: 22
jenkins:
proto: http
addr: 8080
ngrok start --config ngrok.yaml --all
http://localhost:4040
ngrok 프로세스 실행 중일때, 트래픽 모니터링 가능!