Giter VIP home page Giter VIP logo

dynamic-web-app-with-docker-on-aws's Introduction

ref-image

DevOps Project: Dynamic Web Application with Docker on AWS

This project showcases the deployment of a dynamic web application using Docker containers on the AWS cloud. The objective is to provide a comprehensive guide for setting up, building, and deploying a containerized web application using various AWS services. The project incorporates GitHub for version control, Docker Hub for image storage, Flyway for database migration, and a wide array of AWS services for hosting and managing the application.

Summary

The project encompasses the following key steps:

  1. GitHub Repository Setup:

    • Establish a GitHub repository to house the Dockerfile and related scripts.
    • Clone the repository to your local machine for development and tracking changes.
  2. Docker and Docker Hub:

    • Register for a Docker Hub account.
    • Download and install Docker on your computer.
    • Develop a Dockerfile for constructing the container image.
    • Build, initiate, and push the Docker image to Docker Hub for version control.
  3. AWS Infrastructure:

    • Install AWS CLI, create an IAM User, and configure a named profile.
    • Set up an Amazon ECR Repository for storing Docker images securely.
    • Configure a 3-tier VPC with public and private subnets, including essential resources like Nat Gateways, Bastion Host, and Application Load Balancer.
    • Establish Security Groups, an ECS Cluster, and a Task Definition for container orchestration.
    • Employ an Application Load Balancer to efficiently distribute web traffic to ECS Fargate tasks.
  4. Database Migration with Flyway:

    • Utilize Flyway for seamless migration of SQL data into the Amazon RDS database.
  5. Additional AWS Services:

    • Leverage Route 53 for domain registration and the creation of DNS records.
    • Implement AWS Certificate Manager to enhance security with SSL/TLS encryption for data in transit.
  6. Scripts in VS Code:

    • A collection of scripts for tasks such as building, managing, and pushing Docker images to repositories on Docker Hub and AWS ECR.

Deployment Script (Mac PC):

ssh -i <ec2-key-pair> -L <rds-port>:<rds-endpoint>:<localhost-port> ec2-user@<ec2-public-ip> -N -f

dynamic-web-app-with-docker-on-aws's People

Contributors

samuelcombey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.