Skip to content

rderocle/docker-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Nginx image

Requirements

You must have Docker >= 1.5.

What's inside

Configuration

Ports

You can bind ports :

  • 80
  • 443

Volumes

You can mount directories :

  • /etc/nginx/sites-enabled : virtual hosts
  • /etc/nginx/certs : certificates
  • /etc/nginx/conf.d : extra configuration files
  • /var/log/nginx : logs
  • /var/www : code

Usage

# pull (auto) and run
docker run \
  -d \
  --name nginx \
  -p 80:80 \
  -p 443:443 \
  -v /opt/docker/nginx/vhost:/etc/nginx/sites-enabled \
  -v /opt/docker/nginx/logs:/var/log/nginx \
  -v /opt/docker/nginx/code:/var/www \
   monsieurchico/nginx

About

Nginx image

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages