Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Docker Container Deployment on AWS EC2

Project Overview

This project demonstrates deploying a Dockerized Nginx web server on an Ubuntu EC2 instance hosted on AWS. The deployment was performed using PuTTY over SSH, with Docker used to build and run a custom image serving a static HTML website.

Architecture

Laptop │ │ SSH (PuTTY) ▼ AWS EC2 (Ubuntu) │ │ Docker ▼ Nginx Container │ ▼ Static Website

Technologies Used

  • AWS EC2
  • Ubuntu Linux
  • Docker
  • Nginx
  • Git
  • GitHub
  • PuTTY

Project Structure

docker-deployment-project/ ├── Dockerfile ├── index.html ├── README.md ├── screenshots/ └── docs/

Prerequisites

  • AWS Account
  • EC2 Ubuntu Instance
  • Docker Installed
  • SSH Access

Build Docker Image

bash docker build -t docker-demo .

Run Docker Container

bash docker run -d -p 80:80 --name web-container docker-demo

Verify Running Containers

bash docker ps

Access the Application

Open your browser:

http://

Docker Commands

Stop Container

bash docker stop web-container

Start Container

bash docker start web-container Restart Container

bash docker restart web-container Remove Container

bash docker rm web-containerRemove Image

bash docker rmi docker-demo

Screenshots

  • EC2 Instance
  • PuTTY Connection
  • Running Container
  • Browser Output

Learning Outcomes

  • Launching AWS EC2 Instances
  • Connecting via SSH using PuTTY
  • Installing Docker
  • Building Docker Images
  • Running Containers
  • Managing Docker Containers
  • Deploying Static Websites
  • Using Git and GitHub

Author

Snehal Awasare

GitHub: https://github.com/awasaresnehal

LinkedIn: https://linkedin.com/in/snehalawasare

Screenshoots

EC2-runnigdockerdepoly puttydocker-depoly deockerdepoly

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages