Skip to content

This is a sample Docker Demo to host a sample static website in nginx using Docker

License

Notifications You must be signed in to change notification settings

sabhi66/Docker-Static-WebHosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

General info

This project illustartes sample static website hosting using nginx on Docker.

  • Static Website Credits: andrianvaleanu
  • Repository : Repo_link

Technologies

Project is created with:

  • Docker Version: 19.03.13
  • Nginx: latest
  • Ubuntu: 18.04 LTS

Setup

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]

About

This is a sample Docker Demo to host a sample static website in nginx using Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published