Skip to content

bedis/docker-nginx-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nginx-simple

Simplest possible Nginx webserver running on top of Alpine Linux in a container

Nginx is a powerfull web server.

This container may be used to deliver static content only.

Building the container

Clone this repository, go into the directory and run a command like: docker build --tag nginx-simple .

One can also use the docker-compose.yml file provided here: docker-compose build

Using the container

Normal usage

Use a command like this one:

docker run --detach --rm=true --volumes ./wwwroot/:/var/www/ --name=nginx --hostname=nginx nginx-simple

Or use docker-compose:

docker-compose up -d

Debugging

Use a command like this one:

docker run -it --rm=true --volumes ./wwwroot/:/var/www/ --name=nginx --hostname=nginx --entrypoint=sh nginx-simple

Or use docker-compose:

docker-compose up

About

Simplest possible Nginx webserver running on top of Alpine Linux in a container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages