Skip to content

jonathanmiller/docker-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Nginx Dockerfile

This repository contains a Dockerfile of Nginx for Docker's trusted build published to the public Docker Registry.

Dependencies

Docker Image Creation

  1. Install Docker.
  2. Build the image with either
  3. docker build -t="jonathanmiller/docker-nginx" github.com/jonathanmiller/docker-nginx
  4. Manually with Git clone 1. git clone https://github.com/jonathanmiller/docker-nginx 2. cd docker-nginx 3. docker build .

Usage

Basic Execution

docker run -d -p 80:80 jonathanmiller/docker-nginx

With SSL

docker run -d -p 80:80 -p 443:443 jonathanmiller/docker-nginx

Attach Log and Server Configuration Volumes

docker run -d \
 -p 80:80 \
 -p 443:443 \
 -v <log-dir>:/var/log/nginx \
 -v <sites-enabled-dir>:/servers \
 jonathanmiller/docker-nginx

About

Nginx Dockerfile for Trusted Builds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%