はじめに
ローカルPC上で稼働しているネットワーク(TCP)サービスを外部公開できるngrokの環境構築をしようと思います。
コマンド
brewでngrokをインストールします。
$ brew install ngrok/ngrok/ngrok
ngrokの公式からサインアップ/ログインをします。

ngrok | API Gateway, IoT Device Gateway, Secure Tunnels for Containers, Apps & APIs
ngrok is a secure ingress platform that enables developers to add global server load balancing, reverse proxy, firewall, API gateway and Kubernetes Ingress to a...
Setup & Installationの画面で、connect your accountのコードをコピーして、コマンドを実行します。
$ ngrok config add-authtoken [AUTHTOKEN]
以下のコマンドで、dockerを起動しておきます。
$ docker compose up
これで以下のようなコマンドを叩けば、URLを表示でき、接続できます。
ポート番号は、docker-compopse.ymlに記載しているかと思います。
$ ngrok http [ポート番号]
参考

Quickstart | ngrok documentation
This quickstart will use the ngrok agent to put your application on

ngrokが便利すぎる - Qiita
はじめに先日利用したngrokというサービスが便利過ぎたので紹介します。ngrokとは簡単にいうと、ローカルPC上で稼働しているネットワーク(TCP)サービスを外部公開できるサービスです。例え…
コメント
Thanks for the complete information. You helped me.