filmov
tv
Host a static website using the Docker container , Build a image using the Dockerfile Docker - 2

Показать описание
In this viedo we will host a static website using the docker
First we will create a Dockerfile and build a image and then from the image will create a container.
Then add the container port in the nginx configuration file to run the website .
Nginx configration file for the 80 port :-
server {
listen 80;
client_max_body_size 100M;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
#ubuntu
#docker
#container
#staticwebsite
First we will create a Dockerfile and build a image and then from the image will create a container.
Then add the container port in the nginx configuration file to run the website .
Nginx configration file for the 80 port :-
server {
listen 80;
client_max_body_size 100M;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
#ubuntu
#docker
#container
#staticwebsite
How to host a static website on AWS S3 | Host your static website on AWS S3 in 5 minutes
The Best Way to Deploy Your Static Website
Host a static website for FREE on GitHub
Host a Static Website for Free with a Custom Domain
How to host a static website in 30 seconds
How to Host a Website On Github Pages
Build with Me: Launch a website on Amazon S3 | AWS Project
Deploying a Static Website | Beginner's Course | Last Part
Best No-Code Website Builder?? Ultimate Comparison
How to Host a Website for Free? What are the best Free Web Hosting options?
Amazon S3 - Static Website Hosting with Custom Domain and TLS
How to Host a website for free on google drive
How to Host a Static Website?
AWS Project: How to Create a Static Website for Free Using Amazon S3, Step by Step
How to host a static website with Azure Storage | Azure Tips and Tricks
How to Put a Website Online: Template, Coding, Domain, Hosting, and DNS
Project1: Host A Static Website on AWS And CI CD Pipeline - #10WeeksOfCloudOps
How to Host a FREE Website with Google Firebase
Project: How to Host Static Website in AWS S3
Static website hosting on Amazon S3 (with CloudFront) without enabling public access.
Deploying a Website to AWS in Under 1 Minute
Host A Static HTML Website With GitHub Pages For Free
AWS Tutorials - 64 - Host Static Website in S3 -How to host Static Website in S3 ( in Hindi)
Host your static website on DigitalOcean for #free - 2024
Комментарии