GithubHelp home page GithubHelp logo

ablazhey / docker-nginx-src Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gvangool/docker-nginx-src

0.0 2.0 0.0 829 KB

A docker container with a source build of nginx

Home Page: https://index.docker.io/u/gvangool/nginx-src/

Makefile 0.02% Ragel in Ruby Host 0.49% C 63.74% Perl 24.64% Perl 6 1.98% Shell 0.86% PHP 0.23% Python 2.25% C++ 5.28% Nginx 0.16% Lua 0.17% Ruby 0.05% HTML 0.07% GDB 0.05%

docker-nginx-src's Introduction

docker-nginx-src

Config

The nginx config is based on the default Ubuntu 12.04 nginx configuration.

Following modification were done:

echo "daemon off;" >> nginx/nginx.conf

In the ./configure statement, you can find other extensions you could install. They're used in one of the Ubuntu packages (nginx-full, nginx-naxsi, nginx-light, โ€ฆ).

Usage

This should be seen as a base package from which you can install/reconfigure your nginx.

I suggest you also mount 2 volumes: one for the sites you want to enable host and the second for the logs.

mkdir -p ~/nginx/{logs,sites}
docker run -v ~/nginx/logs:/var/log/nginx/ -v ~/ngnix/sites:/etc/nginx/sites-enabled gvangool/nginx-src

Example

To get a minimal nginx version:

FROM gvangool/nginx-src:1.4.4
RUN cd /usr/src/nginx-${NGINX_VERSION} && MODULESDIR=/usr/src/nginx-modules ./configure \
          --prefix=/etc/nginx \
          --conf-path=/etc/nginx/nginx.conf \
          --error-log-path=/var/log/nginx/error.log \
          --http-client-body-temp-path=/var/lib/nginx/body \
          --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
          --http-log-path=/var/log/nginx/access.log \
          --http-proxy-temp-path=/var/lib/nginx/proxy \
          --lock-path=/var/lock/nginx.lock \
          --pid-path=/var/run/nginx.pid \
          --with-http_gzip_static_module \
          --with-http_ssl_module \
          --without-ipv6 \
          --without-http_browser_module \
          --without-http_geo_module \
          --without-http_limit_req_module \
          --without-http_limit_zone_module \
          --without-http_memcached_module \
          --without-http_referer_module \
          --without-http_scgi_module \
          --without-http_split_clients_module \
          --with-http_stub_status_module \
          --without-http_ssi_module \
          --without-http_userid_module \
          --without-http_uwsgi_module \
          --add-module=$(MODULESDIR)/nginx-echo \
RUN cd /usr/src/nginx-${NGINX_VERSION} && make && make install

docker-nginx-src's People

Contributors

gvangool avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.