- nginx-webserver1: An Ubuntu VM running in nginx webserver.
- nginx-proxy: Nginx proxy points to the web servers.
- Docker + Docker Compose
cd labs/nginx/nginx-basic
docker-compose up --build -d
# To stop and remove contaienr, run:
docker compose down- Access the Nginx Proxy at http://localhost:6082 (You can replace 6082 by the port work on your machine!)
- Refresh the page multiple time and you would see that the Nginx Proxy route to
nginx-webserver1