r/flask • u/PuzzleheadedMango533 • Sep 28 '24
Show and Tell A simple example of a Dockerized Flask application using Ngrok to expose the local server to the internet, with a proxy integration to help mitigate potential Ngrok connection issues.
https://github.com/mdeacey/docker-flask-ngrok-proxy1
u/PokeFanForLife Sep 28 '24
ELI5?
3
u/PuzzleheadedMango533 Sep 28 '24
It's a basic boilerplate Dockerized Flask app that uses Ngrok to make it accessible over the internet, instead of just locally. I needed to do so in order to receive webhooks from Stripe. I had trouble accessing Ngrok from some networks (it worked on mobile with VPN, but not on desktop), so I added a proxy to make it more reliable. Maybe someone else working with a similar stack will find it helpful for their development environments too.
2
2
u/kkiran Oct 01 '24
Never did something like this myself! Always wanted to. How do we do this for small scale production projects?
2
u/PuzzleheadedMango533 Oct 01 '24
This was created for a small scale side project, so it'd probably work.
2
u/kkiran Oct 01 '24
Awesome, will definitely give it a shot! Running local LLAMA and this can be fun projects. Thank you so much for contributing to the community. 👍
2
u/bishakhghosh_ Sep 28 '24
Nice. Looks like we need to create similar docker files using https://pinggy.io/ for ease of use.