How sandeepkumar1703/nextjs-aws-ec2-deployment works
This repository demonstrates a manual Docker-to-AWS deployment of a minimal Next.js web app: a developer builds and pushes an image to ECR, then an EC2 host pulls and runs it for browser access. The app source confirms a home page and global styling. Deployment steps and AWS components are documented in the README; Dockerfile behavior and runtime wiring were not sampled, so those links follow the documented workflow only.
Main entry points: _app.tsx App wrapper · Dockerfile Docker build config · index.tsx Home page · globals.css Global styles
Components 12
Web application
- Home page
app/pages/index.tsx - App wrapper
app/pages/_app.tsx - Global styles
app/styles/globals.css
Image workflow
- Docker build config
Dockerfile - Docker image
AWS hosting
- ECR registry
- AWS IAM
- EC2 host
- Next.js container
- Port 3000
Other components
- Developer
- Web browser
Connections 12
- Developer → Docker build config: builds from
- Docker build config → Docker image: packages app
- Developer → ECR registry: pushes image
- Docker image → ECR registry: uploaded to
- EC2 host → ECR registry: pulls image
- EC2 host → Next.js container: runs image
- Next.js container → Port 3000: serves on
- Web browser → Port 3000: requests app
- Port 3000 → Home page: serves page
- App wrapper → Home page: renders component
- App wrapper → Global styles: imports styles
- AWS IAM → ECR registry: authenticates access