Skip to content

harshit0209/multi-container-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[<img src= https://badgen.net/badge/Linkedin/harshit/blue>](https://www.linkedin.com/in/harshit-chaurasia-38a57016a/) 
  

# Multi-Container Nginx Setup for Microservices

This repository demonstrates how to use Nginx to route traffic to different microservices based on route URLs. Three services will be running on different ports, and Nginx will handle traffic distribution based on route paths.

## Prerequisites

- Docker and Docker Compose are installed on your system.

## Usage

1. Clone this repository to your local machine:

   ```bash
   git clone https://github.com/harshit0209/multi-container-nginx.git
   cd multi-container-nginx
   docker-compose up --build
1. Hit following URL, these are for different service:


- http://localhost/api

- http://localhost/api1

- http://localhost/api2

- ws://localhost/ws
    - send message it will return same

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages