Public | Automated Build

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

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.

Docker Pull Command
Owner
dockerize
Source Repository

Comments (0)