Skip to content

This repository provides a comprehensive example of implementing load balancing for a Golang application using NGINX and Docker.

Notifications You must be signed in to change notification settings

anamul94/load-balancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Balancing with NGINX and Docker

This repository demonstrates how to implement load balancing for a Golang application using NGINX and Docker.

Table of Contents

Introduction

This project sets up a simple Golang application with multiple instances, using NGINX as a load balancer to distribute incoming requests. Docker is used to containerize the application and manage the services.

Prerequisites

Before running this project, ensure you have the following installed:

Setup Instructions

1. Clone the Repository

First, clone this repository to your local machine:

git clone https://github.com/anamul94/load-balancing.git
cd load-balancing

2. Build and Run the Docker Containers

Use Docker Compose to build and run the Docker containers:

docker-compose up -build

The application will be accessible at http://localhost:8000.

About

This repository provides a comprehensive example of implementing load balancing for a Golang application using NGINX and Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published