Categories: Development

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth

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

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth
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.

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth

The complete guide from the repo sites:

GitHub: https://github.com/garanet/Docker-Python-Flask-with-NGINX-for-AUTH

SourceForge: https://sourceforge.net/p/docker-python-flask-nginx-auth/code/ci/main/tree/

A similar project is here:

-> https://www.garanet.net/k8s-php-postgresql-redis/

Share

Recent Posts

FastAPI, SQLAlchemy & Uvicorn

A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet… Read More

Client TrueNas & Ldap with python Flask

A webtool in Python Flask that creates an LDAP user and his TrueNAS shares pool in ISCSI or NFS. There… Read More

Simple Terraform configuration

A Terraform configuration that provisions the following infrastructure: A VPC with: Public subnets for external resources. Private subnets for internal… Read More