NGINX On Docker Container | Dockerfile NGINX | NGINX Docker Tutorial | Thetips4you

preview_player
Показать описание
#docker,#nginx,#nginxtutorial Hello Friends, Welcome back to my channel. In this tutorial we are going to see how we can setup NGINX in docker. We will go through the step by step procedure to create a Simple NGINX container and with persistent volume.
We will create a sample html page and then will see how we can create our own docker image to include the html webpage and host in NGINX. So lets get started.

------------------------------------------------------------------------------------------------
Check out the video on Prometheus:
------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
Docker Swarm High availability and Loadbalancing:
-----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
docker run -d --name nginx -p 8081:80 nginx

docker run -d --name nginx -p 8081:80 -v nginx_data:/usr/share/nginx/html nginx

/usr/share/nginx/html

Dockerfile :

FROM nginx
COPY ./nginx/* /usr/share/nginx/html
EXPOSE 80

---------------------------------------------------------------------------------------------------
=================================================
Follow me @:
=============================================
Рекомендации по теме
Комментарии
Автор

Thanks Man, it was so support to us..

vardhanlearner
Автор

So helpful, , can u make a video on nginx with php-fpm in a single dockerfile?

nikeshrathod
Автор

Sir please make a video how to share data between docker swarm nodes। Please Sir

rampanwar
Автор

Hi Sir. /nginx folder is not present after /usr/share. It stops right there. Please suggest. If i give the whole command, cd /usr/share/nginx/, i get "No such file or directory" error.

Sriramlivz
Автор

When I use docker build -t nginxweb:latest .
It is throwing error like copy failed no source files were specefied

pranav