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: https://youtu.be/tIvHAxs8Fec ------------------------------------------------------------------------------------------------ ---------------------------------------------------------------------------------------------- Docker Swarm High availability and Loadbalancing: https://youtu.be/zMC3SyeaDGU ----------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- 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 Reference: https://hub.docker.com/_/nginx --------------------------------------------------------------------------------------------------- ================================================= Follow me @: https://www.instagram.com/thetips4you https://www.youtube.com/channel/UCoOq... https://www.facebook.com/thetipsforyou http://www.thetips4you.com =============================================
From: Thetips4you