Deploy WebRTC app to AWS EC2 with DOCKER in 20 minutes

  Рет қаралды 2,013

Code & bird

Code & bird

Жыл бұрын

In this video, we will guide you through the entire process, from containerizing your Node.js app with Docker to deploying it on Amazon Web Services (AWS) EC2 instances.
Docker has revolutionized the way we package and distribute applications, making deployment easier and more efficient. And with AWS EC2, you have a powerful cloud infrastructure to host your Dockerized applications. Whether you're a beginner or an experienced developer, this tutorial will provide you with the knowledge and hands-on experience you need to successfully deploy your Webrtc app.
Throughout the video, we will cover the following key topics:
Introduction to Docker: We'll give you a brief overview of Docker and explain its benefits in the context of application deployment.
Dockerizing a Node.js App: You'll learn how to create a Dockerfile, define the necessary dependencies, and package your Node.js application into a Docker image. We'll guide you through best practices and show you how to optimize your Docker image size.
Setting Up AWS EC2: We'll walk you through the process of creating an EC2 instance on AWS and configuring it.
Deploying Dockerized App to AWS EC2: You'll discover how to securely transfer your Docker image to the EC2 instance and run it as a container.
I will also show how to host our client app on S3 bucket - it is easy and fast.
Dockerfile github.com/nim-f/webrtc-react...
Here is the list of commands I use in the video to deploy the server:
To create and push your image to docker hub,
run on your local machine in the app root:
docker login
docker build -t nimff/peerjs:0.0.4 .
docker push nimff/peerjs:0.0.4
To fetch the image and run it on EC2, connect via ssh or aws connect wizard:
sudo yum install docker
sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker
sudo systemctl enable docker.service
sudo systemctl start docker.service
docker pull nimff/peerjs:0.0.4
docker run -d -p 80:9001 --name peerjs nimff/peerjs:0.0.4
Link to github github.com/nim-f/webrtc-react...

Пікірлер: 1
@sangvu8150
@sangvu8150 Ай бұрын
I followed the above steps like the video but when I access the link created on AWS I don't see anything displayed on that page. Can you help me?
Add custom domain with HTTPS for AWS S3 hosted website
10:04
Code & bird
Рет қаралды 1 М.
How to deploy a Node Express API to AWS EC2 instance
18:17
JonathanSanchez
Рет қаралды 52 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 3,1 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 5 МЛН
Elon Musk on Sam Altman and ChatGPT: I am the reason OpenAI exists
5:18
CNBC Television
Рет қаралды 2 МЛН
WebRTC in 100 Seconds // Build a Video Chat app from Scratch
11:19
AWS EC2 vs ECS vs Lambda | Which is right for YOU?
16:50
Be A Better Dev
Рет қаралды 181 М.
Deploy your Angular App to a Serverless Environment (AWS)
14:23
DesignCourse
Рет қаралды 53 М.
Amazon EC2 Basics & Instances Tutorial
9:53
Stephane Maarek
Рет қаралды 189 М.
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
11:02
Fireship
Рет қаралды 1,8 МЛН
Deploy NodeJS Apps with Docker [2022]
10:30
The Nerdy Canuck
Рет қаралды 29 М.
Dockerize .NET 6 in 10 Minutes
13:33
Wes Doyle
Рет қаралды 135 М.
Deploy Docker to AWS EC2 with GitHub Actions
2:56
Bitovi
Рет қаралды 13 М.