Skip to content

A standard nginx docker image whose serving files could be customized with an environment variable

License

Notifications You must be signed in to change notification settings

vchs/nginx-custom-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

By default this custom NGINX docker image behave like a regular stock NGINX image. However if the INDEX_HTML_CONTENT system variable is passed to the container, the image will replace the index.html file with the content of the variable.

A docker image is already available on the docker hub as mreferre\nginx-custom-site.

####Usage

The command below is equivalent to run the stock nginx docker image:

docker run --rm -d -P mreferre/nginx-custom-site:latest

The command below runs a stock nginx image replacing the default index.html file with the settings of the INDEX_HTML_CONTENT variable:

docker run --rm -d -e INDEX_HTML_CONTENT="My custom web site" -P mreferre/nginx-custom-site:latest

About

A standard nginx docker image whose serving files could be customized with an environment variable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 57.7%
  • Dockerfile 42.3%