Skip to content

kandrsn99/Static-Web-Hosting-Docker-Nginx-Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Hosting-Docker-Container-Nginx-Proxy

This is a sample of a webpage launchable with Docker. Docker makes it easy to deploy executables on a server host.

You may read about the summarized documentation of Docker here: https://github.com/kandrsn99/Web-Hosting-Docker-Nginx-Proxy/blob/main/static_html/Docker%20Command%20Line%20Interface.pdf

It shall be noted here you will need to install the Docker Engine on your local machine. You may do this through the instructions on the following webpage: https://docs.docker.com/engine/install/

In order to install this repository from the command line you will need to get the 'git' package on your linux machine.

Any Operating System utilizing 'APT' package manager

sudo apt-get git

Any Operating System utilizing 'YUM' package manager

sudo yum install git

Any Operating System utilizing 'DNF' package manager

sudo dnf install git

Next, utilize the git function on your local machine command line interface to download this repository.

git clone https://github.com/kandrsn99/Static-Web-Hosting-Docker-Nginx-Proxy.git

Subsequently, change into the directory containing your downloaded repository.

cd 'name of file-path'

Upon entering the directory. The docker compose file should allow you to build the html web-page.

docker compose build
docker compose up -d

You may check your HTML via web hosting service on http://localhost:80/ or the server address on http://address:80/

You may purchase a domain name server (DNS) register to point to your new hosts internet protocol (IP) address. Upon completion of pointing a DNS at the host you may use http://dominamename to send to all your friends and/or customers. The customized domain name may be added if you read about the official NGINX docker image documentation here https://hub.docker.com/_/nginx/ which was modified for this repository.

Do note that you must retrieve an SSL (secure socket layer) certificate to have HTTPs working for your domain name. The NGINX configuration file is meant to be easy to follow and understand. Read it and make sure the certificates are stored in the correct locations with the proper naming schema for NGINX. An easy way to create SSL certificate may be done with openSSL, https://openssl.org/, from the command line or otherwise downloaded from the DNS provider.

It is highly recommended that you use Cloudflare as they are the leading provider of a register for hosting a DNS. You may review their documentation here https://developers.cloudflare.com/learning-paths/get-started/ at your leisure.

About

This is a sample of a static html webpage launched on a docker engine using nginx.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published