Sign inSign up

geschke/nginx

By geschke

•Updated almost 10 years ago

A minimal Nginx Docker image based on Alpine Linux.

Image
0

2.2K

geschke/nginx repository overview

⁠geschke/nginx

This is a minimal Nginx Docker image based on Alpine Linux.

⁠DO NOT USE THIS!

⁠This image is not actively maintained!

⁠Usage

To download the container run

docker pull geschke/nginx

To start, put the Nginx configuration in some directory and let the system run.

sudo docker run -d --name nginx --restart=always \
    -v /srv/docker/nginx/sites-enabled:/etc/nginx/sites-enabled \
    -v /srv/docker/nginx/conf.d:/etc/nginx/conf.d \
    --publish <port_on_host>:80 --link whatever:you_like \
    geschke/nginx    

There is an example of a configuration as reverse proxy in the files/sites-enabled/ directory. Please put your configuration files into a similar directory on your server.

Example of filesystem:

/srv/docker/nginx/
		  sites-enabled/
		  conf.d/
		  www/

If you start the Nginx container with the above command, put the (virtual) hosts configuration into the sites-enabled directory. This is similar to the Ubuntu approach, only without using symlinks.

You'll find an initial Nginx configuration in the Github project.

⁠More Info

You'll find some examples in the (sorry, German only) blog posts:

https://www.kuerbis.org/2015/10/admin-ich-habe-den-container-geschrumpft-ein-minimales-nginx-docker-image/⁠ and https://www.kuerbis.org/2015/11/aufbau-einer-docker-private-registry/⁠

And maybe I will improve the description here some day. ;-)

Tag summary

Content type

Image

Digest

sha256:bf660366c…

Size

3.5 MB

Last updated

almost 10 years ago

docker pull geschke/nginx