This project illustartes sample static website hosting using nginx on Docker.
- Static Website Credits: andrianvaleanu
- Repository : Repo_link
Project is created with:
- Docker Version: 19.03.13
- Nginx: latest
- Ubuntu: 18.04 LTS
To run this project, install docker locally on UBUNTU:18.04 LTS:
* Clone Repo which creates a directory named Docker-Static-WebHosting.
* Go Inside the directory and You can have your custom or Sample HTML File
* The Following are Docker Commands to Build and Run a Docker Container to Host Your HTML Page
$ docker build -t staticwebsitehosting . [ Build Docker Image ]
$ docker run -it --rm -d -p 2020:80 --name website staticwebsitehosting [ Run Image]