Sign inSign up

monsieurchico/nginx

By monsieurchico

•Updated almost 11 years ago

Image
0

362

monsieurchico/nginx repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:f117e45bf…

Size

83.5 MB

Last updated

almost 11 years ago

docker pull monsieurchico/nginx