0% found this document useful (0 votes)
13 views1 page

01 Dockerizing Static Website

NGINX is an open-source software used for web serving, reverse proxying, and load balancing, initially designed for high performance and stability. The document outlines the steps to dockerize a static website using NGINX, including creating a directory, a Dockerfile, building the image, and running it. Finally, it provides the URL to access the website once it is running.

Uploaded by

Kavi Arasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

01 Dockerizing Static Website

NGINX is an open-source software used for web serving, reverse proxying, and load balancing, initially designed for high performance and stability. The document outlines the steps to dockerize a static website using NGINX, including creating a directory, a Dockerfile, building the image, and running it. Finally, it provides the URL to access the website once it is running.

Uploaded by

Kavi Arasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

NGINX

NGINX is open-source software for web serving, reverse proxying, caching, load
balancing, media streaming, and more. It started out as a web server designed for
maximum performance and stability. In addition to its HTTP server capabilities, NGINX
can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse
proxy and load balancer for HTTP, TCP, and UDP servers.

To dockerize the medilab-preclinic static website, we will use nginx as webserving


reverse proxy.

Step1:Create a Directory for the Website

Make sure that you have your HTML files already in the current directory.

Step 2 - Create a file called Dockerfile

Create a file named Dockerfile in the root folder of the project as shown below:

With the following Content inside in it:

Step 3 - Build the image

docker build -f Dockerfile -t medilab-website-image .

Step 4 - run the image

docker run -d -p 80:80 medilab-website-image

Step5 - access the website

http://192.168.99.100:80/

You might also like