Sign inSign up

dockerize/nginx

By dockerize

Updated almost 11 years ago

Image
0

1.4K

dockerize/nginx repository overview

Nginx Dockerfile

Nginx Dockerfile. Also published to public Docker Registry.

Installation
  1. Install Docker

  2. Download image from public Docker Registry:

docker pull dockerize/nginx

or build an image from the Dockerfile:

docker build -t dockerize/nginx github.com/dockerize/nginx
Usage
docker run -d -p 80:80 dockerize/nginx
Attach Persistent/Shared directory
docker run -d -p 80:80 -p 443:443 -v <sites-enabled-dir>:/etc/nginx/sites-enabled -v <content-dir>:/var/www/html -v <log-dir>:/var/log/nginx -v <certs-dir>:/etc/nginx/certs dockerize/nginx

After few seconds, open http://localhost to see the result.

Tag summary

Content type

Image

Digest

sha256:fb30ea30a

Size

182.7 MB

Last updated

almost 11 years ago

docker pull dockerize/nginx