laster13 / docker-nginx

Docker image for nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mbentley/nginx

docker image for nginx based off of alpine:latest

To pull this image: docker pull mbentley/nginx

Example usage: docker run -it -p 80 --name nginx -v /data/www:/var/www mbentley/nginx

By default, this just runs a basic nginx server that listens on port 80. The default webroot is /var/www.

Environment variables

  • FASTCGI_PASS - (default - unix:/var/run/php5-fpm.sock) - Allows user to override the location used by fastcgi_pass in /etc/nginx/php.conf.
    • Example: unix:/run/php/php7.0-fpm.sock for php7.0-fpm
    • Example: php:9000 where php5-fpm is listening on port 9000 on an overlay network where the service is named php

About

Docker image for nginx

License:Apache License 2.0


Languages

Language:Dockerfile 71.3%Language:Shell 28.7%