Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/levankhelo/ngrok-container-network
https://github.com/levankhelo/ngrok-container-network
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/levankhelo/ngrok-container-network
- Owner: levankhelo
- License: mit
- Created: 2021-11-01T17:48:19.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-30T19:01:41.000Z (over 2 years ago)
- Last Synced: 2023-03-10T11:56:16.411Z (almost 2 years ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngrok-container-network
Easily host your containerized (docker-compose) application using ngrok, and make it easily reachable using simple link## How to make it work for you case:
Modify `ngrok/Dockerfile` and input your authorization token retrieved from [ngrok.com](ngrok.com)
### ngrok/Dockerfile
* change auth token### docker-compose.yaml
* replace `golang-server:8090` everywhere with `container_name` and `:port` of your application with `container_name:port`
* replace example-server with your server container
* make sure you expose server port
* make sure you name container using `container_name` field
* ngrok service
* in command field, change `golang-server:8090` with `my_container_name:PORT`. for example: `flaskserver:5000`, `djangoserver:8000` or `myExpress:3000`> note: if you are going to change something in this example's golang script, make sure you run `docker compose up --build` or `docker-compose up --build` to rebuild go script