harshit0209 / multi-container-nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[<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


Languages

Language:Go 100.0%