This project shows how you can create a python flask API with docker behind a reverse proxy to protect different /endpoints.
A Python Flask API with 2 Endpoints on Docker behind NGINX Auth
It could be easily integrated with different pipelines to trigger when a Dockerfile or your app.py changes.
In the main folder, you’ll find a bash script to create or shut down the containers.
The script also is checking with a curl command if the containers are working or not.
In order to run it, You need to have installed on your PC/MacOsX/Linux, Docker, and docker-compose.
The complete guide from the repo sites:
A similar project is here: