Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Nginx Dockerfile

Nginx Dockerfile. Also published to public Docker Registry.


  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


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.

Docker Pull Command
Source Repository