Same Nginx | Different Worlds | Real DevOps Skills

I built one Netflix-inspired landing page (HTML, CSS, JavaScript) and deployed it six different ways using Nginx. Same UI, six deployment worlds — each method taught me a different real-world DevOps skill. Here is the complete breakdown, point by point.

Method 1: Netflix (Nginx) through GitHub Pages

Workflow: Netflix UI → GitHub Repository (netflix-nginx) → GitHub Pages (Static Hosting)

Key steps:

  1. Create a GitHub repository.
  2. Add the Netflix landing page files (HTML, CSS, JS, images).
  3. Enable GitHub Pages (Settings → Pages).
  4. Select the main branch (root or /docs).
  5. Access the live URL.

Live demo: https://mohitlohar1555-oss.github.io/Netflix-Landing-page-/

Method 2: Netflix (Nginx) through Docker

Workflow: Dockerfile (Nginx + Netflix UI) → Docker Image (netflix-nginx:latest) → Docker Container (Running Nginx)

Key steps:

  1. Create the project folder (netflix-nginx).
  2. Add the Netflix UI files (HTML, CSS, JS).
  3. Write the Dockerfile (FROM nginx).
  4. Build the image: docker build -t netflix-nginx .
  5. Run the container: docker run -d -p 8080:80 netflix-nginx
  6. Access: http://localhost:8080

Live demo: http://13.233.107.66:9090

Method 3: Netflix (Nginx) through ECS & ECR

Workflow: Docker Image (netflix-nginx) → Amazon ECR (Store Image) → Amazon ECS (Deploy Container) → Application Load Balancer → Netflix Task 1 & Task 2

Key steps:

  1. Build the Docker image for the Netflix UI.
  2. Push the image to Amazon ECR.
  3. Create an ECS cluster and task definition.
  4. Create a service (Fargate or EC2).
  5. Configure the Application Load Balancer.
  6. Access the Netflix UI via the ALB DNS.

Method 4: Netflix (Nginx) through Jenkins (CI/CD)

Workflow: GitHub (Source Code) → Jenkins (Build & Deploy) → Nginx (Deployed)

Pipeline stages:

  1. Pull code from GitHub.
  2. Build the Docker image.
  3. Push to ECR (or Docker Hub).
  4. Deploy to ECS / EC2 (Nginx).

Key steps:

  1. Create a Jenkins pipeline (Jenkinsfile).
  2. Pull the Netflix code from GitHub.
  3. Build the Docker image (Nginx + Netflix).
  4. Push the image to ECR / Docker Hub.
  5. Deploy to ECS / EC2 using the pipeline.
  6. Verify the deployment and access the URL.

Live demo: http://13.206.247.94:8081

Method 5: Netflix (Nginx) through EC2 Server

Workflow: Amazon EC2 (Ubuntu / Amazon Linux) → Install Nginx → Copy Netflix landing page files → Start Nginx → Access using EC2 Public IP

Commands:
sudo yum install nginx (or) sudo apt install nginx
sudo systemctl start nginx
sudo systemctl enable nginx

Key steps:

  1. Launch an EC2 instance (Amazon Linux / Ubuntu).
  2. Connect using SSH.
  3. Install Nginx (yum / apt).
  4. Copy the Netflix landing page files to /usr/share/nginx/html.
  5. Start and enable the Nginx service.
  6. Access using the EC2 Public IP (or DNS).

Live demo: http://13.127.219.154

Method 6: Netflix (Nginx) through S3 + Terraform (IaC)

Workflow: Terraform (.tf Files) → Amazon S3 (Static Website)

Key steps:

  1. Prepare the Netflix UI files (HTML, CSS, JS, images).
  2. Write the Terraform files: provider.tf (AWS provider), s3.tf (S3 bucket, website enabled), variables.tf (input variables), outputs.tf (website URL output).
  3. Run the Terraform commands: terraform init → terraform validate → terraform plan → terraform apply.
  4. Access the S3 website URL.

Live demo: http://netflix-inspired-site-23ba2020.s3-website.ap-south-1.amazonaws.com/

What I Learned

✅ Nginx Hosting (Static & Dynamic)
✅ Containerization (Docker)
✅ AWS Services (ECR, ECS, EC2, S3)
✅ CI/CD Automation (Jenkins)
✅ Infrastructure as Code (Terraform)
✅ Real-World Deployment & Troubleshooting

Conclusion

One landing page, six deployments — this project connected the full DevOps chain for me: version control with GitHub, containers with Docker, cloud hosting on EC2 and S3, managed containers with ECS & ECR, automation with Jenkins CI/CD, and Infrastructure as Code with Terraform. If you are learning DevOps, pick one simple UI and deploy it every way you can. The UI stays the same; your skills grow with every method.

👨‍💻 About the Author
Mohit Gadilohar — Aspiring Cloud & DevOps Engineer | AWS | Terraform | Docker | Jenkins | Linux
🔗 GitHub: https://github.com/mohitlohar1555-oss
🔗 LinkedIn: https://www.linkedin.com/in/mohit-gadilohar-devops/

buildwithcloud #AWS #DevOps #Nginx #Docker #Terraform #Jenkins