Skip to content

jancajthaml-devops/nginx-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compact Nginx container ( 11.5MB / 8MB compressed )

Stack

Build from source of Nginx running on top of lightweight Alphine Linux.

Usage

docker run --rm -it --log-driver none \
	-p 8080:8080 \
	-p 443:443 \
	-v $(pwd)/example/nginx.crt:/etc/nginx/ssl/nginx.crt \
	-v $(pwd)/example/nginx.key:/etc/nginx/ssl/nginx.key \
	-v $(pwd)/example/dhparam.pem:/etc/nginx/ssl/dhparam.pem \
	-v $(pwd)/example/nginx.conf:/etc/nginx/nginx.conf \
	-v $(pwd)/example/index.html:/var/www/index.html \
	jancajthaml/nginx:latest nginx