-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
31 lines (17 loc) · 865 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[<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