Host a Website From Your Computer Using Docker & Nginx in 5 Minutes

preview_player
Показать описание
This is how you can host an HTML folder from your computer/server. This will allow local connections to view your website. Port forwarding can be done to access the website from outside of your network but it is not recommended. If you want everyone to have access to the website, you can use cloudflare's reverse proxy which will let others connect to your site without the users directly connecting to your network.

Subscribe to see more tech content!

Docker Playlist:

Timestamps:
0:00 Explanation
0:42 Creating the Docker Compose File
4:55 Running the Docker Container
5:46 Accessing the Website
6:03 Nginx Configuration File (Optional)
6:31 Outro
Рекомендации по теме
Комментарии
Автор

Thank you for this! It's direct and straight to the point.

xhros
Автор

Hey! Great tutorial! I was wondering what OS you have though? Looks super cool, is it linux?

tropii_
Автор

Hi. Very informative video, thanks. So if i map my local html folder and do some changes to the website html, it will show right away ?

ITTom
Автор

didn't work for me I followed all the steps. Container even shows up in portainer and shows green status but in browser it doesn't serve any html page.

zaman.tasiin
Автор

is this the same thing for vps website ? Thanks a lot

rachidben-azouz
Автор

Why is exposing my app through port forwarding is not recommended? I've been trying to do this for the past 2 days but it seems that my ISP blocks HTTP/HTTPS default ports and it's been a pain to solve this.

I noticed that u mentioned cloudflare's reverse proxy, but I couldn't find this option in their dashboard. Could u tell me where to look for this? Thanks in adv!

midnaite
Автор

Can you teach us how to code html next!

blingblong