Skip to content

A Docker Compose setup for a multi-service API load balancer using Nginx, HAProxy, and Flask services, with CORS support.

License

Notifications You must be signed in to change notification settings

muldercw/Multi-Service-API-Load-Balancer-with-Nginx-and-HAProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Multi-Service API Load Balancer

Table of Contents

Introduction

This repository provides a single Docker Compose configuration for setting up a multi-service API load balancer using Nginx, HAProxy, and Flask services. The included services enable efficient load balancing and CORS support for seamless API communication.

Prerequisites

Before getting started, ensure that you have the following software installed on your system:

  • Docker
  • Docker Compose

Usage

  1. Clone this repository to your local machine:
  2. git clone repository-url
  1. Navigate to the repository directory:
  2. cd <repository-directory>
  1. To launch the services, execute the following command:
  2. docker-compose up

    This command will start the Nginx, HAProxy, and three Flask API services. Nginx serves as the frontend, HAProxy handles load balancing, and Flask services simulate API endpoints.

Accessing the Services

Customization

You have the flexibility to customize the services and configurations by modifying the Docker Compose file and individual service configurations within this repository.

Contributing

We welcome contributions to this project. Feel free to open issues or submit pull requests. Your contributions are valuable and greatly appreciated!

License

This project is distributed under the GNU General Public License (GPL-3.0). Refer to the LICENSE file for comprehensive details regarding the licensing terms.

About

A Docker Compose setup for a multi-service API load balancer using Nginx, HAProxy, and Flask services, with CORS support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published