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/