infraestructure_integration

The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.

https://github.com/danielsarmiento04/infraestructure_integration

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.7%) to scientific vocabulary

Keywords

docker-compose fastapi nginx nginx-load-balance nginx-reverse-proxy sqlmodel
Last synced: 4 months ago · JSON representation ·

Repository

The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.

Basic Info
  • Host: GitHub
  • Owner: DanielSarmiento04
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 29.3 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
docker-compose fastapi nginx nginx-load-balance nginx-reverse-proxy sqlmodel
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Infrastructure Integration

Resume

The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.

Concept API

The API have the capability to manage the Hero, an Hero has the follow parameters

  • id
  • name
  • secret_name
  • age

The Api has 3 endpoints

  1. / => health check
  2. POST /heroes/ => create a new hero
  3. GET /heroes/ => get the heroes

Concept Infrastructure

The project has an integration with docker compose, see more in the docker-compose.yml file.

  1. Postgres SQL, image.
  2. mshero1, api image.
  3. mshero2, api image.
  4. serverreverseproxys, nginx image, the nginx conf file is at the follow path reverse_proxy/nginx.conf.

The load balancer is configured to send a request to each ms_hero follow least connection.

Start up

This repository used docker as container manager

docker-compose build

docker-compose up -d

or if you want to use a simplified command line

docker-compose up -d --build

Stack

  1. FastApi as Rest API framework.
  2. Docker as container manager.
  3. PostgresSql as DataBase.
  4. Nginx as load balancer and reverse proxy.

Reference

[1] Simic, S. (2023) How to install Docker on ubuntu 20.04 and 22.04, phoenixNAP. Available at: https://phoenixnap.com/kb/install-docker-on-ubuntu-20-04 (Accessed: 21 September 2023).

[2] Maintainers, D. (2023) Install the compose plugin, Docker Documentation. Available at: https://docs.docker.com/compose/install/linux/ (Accessed: 21 September 2023).

[3] taoyuan. (n.d.). Generation of a self signed certificate. Gist. https://gist.github.com/taoyuan/39d9bc24bafc8cc45663683eae36eb1a

[4] Ramírez, S. FastAPI [Computer software]. https://github.com/tiangolo/fastapi

Owner

  • Name: José Daniel Sarmiento
  • Login: DanielSarmiento04
  • Kind: user
  • Location: Santander, Colombia
  • Company: Axede S.A

Programmer, mechanical engineer and entrepreneur, my goal is to improve the quality of life of people, technology is the tool I use.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  Infrastructure Integration
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Jose Daniel
    family-names: Sarmiento
    email: josedanielsarmiento219@gmail.com
    affiliation: mechanical engineering
repository-code: >-
  https://github.com/DanielSarmiento04/infraestructure_integration
abstract: >-
  The aims of this repository is used the stack with python
  (FastApi) , PostgresSql and nginx as load balancer and
  server reverse proxy.
keywords:
  - Nginx
  - FastAPI
  - PostgresSql
license: MIT
version: '1.0'
date-released: '2024-04-27'

GitHub Events

Total
Last Year

Dependencies

.github/workflows/docker-image.yml actions
  • actions/checkout v3 composite
Dockerfile docker
  • python 3.11 build
docker-compose.yml docker
  • postgres 14-alpine
requirements.txt pypi
  • SQLAlchemy ==2.0.29
  • annotated-types ==0.6.0
  • anyio ==4.3.0
  • click ==8.1.7
  • fastapi ==0.110.2
  • h11 ==0.14.0
  • idna ==3.7
  • pydantic ==2.7.0
  • pydantic_core ==2.18.1
  • python-dotenv ==1.0.1
  • sniffio ==1.3.1
  • sqlmodel ==0.0.16
  • starlette ==0.37.2
  • typing_extensions ==4.11.0
  • uvicorn ==0.29.0
.github/workflows/docker_compose.yml actions
  • actions/checkout v4 composite
  • hoverkraft-tech/compose-action v1.5.1 composite
reverse_proxy/Dockerfile docker
  • nginx latest build