Skip to content

hachreak/docker-nginx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Docker Demo with nginx server pre-configured to load your pages.

Install a new debian container with installed nginx.

Nginx load the files of the website directly from site directory.

How To

First, build the image and then run the nginx server inside a docker container.

cd docker-nginx-demo
docker build -t nginx-example .
docker run -p 8081:80 -v=`pwd`/site:/var/www:rw -d nginx-example

Now, you can open your browser: http://0.0.0.0:8081/ and see Hello Worlds message. If you see the message, the demo worked well! :D

About

Docker Demo with nginx server preconfigured to load your pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published