Sign inSign up

kalicki2k/alpine-nginx

By kalicki2k

•Updated almost 9 years ago

alpine-nginx

Image
1

107

kalicki2k/alpine-nginx repository overview

⁠Nginx on Alpine Linux 3.6

This is a micro docker images based on Alpine Linux 3.6 and Nginx 1.12.

To access site contents from outside the container you should map /var/www/localhost/htdocs.

⁠Static folders

The image exposes a volume at /var/www/localhost. The structure is:

DirectoryDescription
/var/www/localhost/htdocsweb root
/var/www/localhost/cgi-bincgi bin folder
/var/www/localhost/logslog folder

⁠Environment variables

Various env vars can be set at runtime via your docker command or docker-compose environment section.

NameDescription
NGINX_SERVER_NAMEServer name that the server uses to identify itself.
NGINX_RUN_USERUser name to run httpd as.
NGINX_RUN_USER_IDUser ID to run httpd as.
NGINX_RUN_GROUPGroup name to run httpd as.
NGINX_RUN_GROUP_IDGroup ID to run httpd as.

⁠Usage

To use this start the container on port 8080 with:

docker run -d --name nginx -p 8080:80 -v /path/to/localhost:/var/www/localbost kalicki2k/alpine-nginx

Or with environments:

docker run -d --name nginx -p 8080:80 -e NGINX_RUN_USER=web1 -e NGINX_RUN_GROUP=web -e NGINX_SERVER_NAME=localhost kalicki2k/alpine-nginx

Tag summary

Content type

Image

Digest

Size

6.3 MB

Last updated

almost 9 years ago

docker pull kalicki2k/alpine-nginx