Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 787 Bytes

File metadata and controls

43 lines (33 loc) · 787 Bytes

Nginx Reverse Proxy

Basic nginx reverser proxy implementation using docker, load balancing three nginx http servers.

The directory layout

.
├─ reverse-proxy 
│  	├─ Dockerfile
│		└─ nginx.conf
│ 
├─ server1
│	└─ index.html
│ 
├─ server2
│ 	└─ index.html
│ 	
├─ server3
│ 	└─ index.html
│ 	
├─ compose.yaml
│
└─ README.md

How to run:

  1. Install Docker Engine.
  2. Install Docker Compose V2 plugins.
  3. Locate to the directory.
  4. Run the following:
docker compose up -d
  1. Visit and view the content in following url:
http://localhost