Giter VIP home page Giter VIP logo

docker-nginx's Introduction

tozd/nginx

https://gitlab.com/tozd/docker/nginx

Available as:

Image inheritance

tozd/base โ† tozd/dinit โ† tozd/nginx

Tags

  • ubuntu-trusty: nginx 1.4.6
  • ubuntu-xenial: nginx 1.10.3
  • ubuntu-bionic: nginx 1.14.0
  • ubuntu-focal: nginx 1.18.0
  • ubuntu-jammy: nginx 1.18.0

Volumes

  • /var/log/nginx: Log files when LOG_TO_STDOUT is not set to 1.
  • /etc/nginx/sites-volume: Nginx configuration for sites served by the container.

Variables

  • SET_REAL_IP_FROM: Configures set_real_ip_from which defines trusted addresses that are known to send correct replacement addresses. If the container is run behind a reverse HTTP proxy, you can set this environment variable to configure proxy's IP address for Nginx to correctly resolve and log clients' IP addresses.
  • LOG_TO_STDOUT: If set to 1 output logs to stdout (retrievable using docker logs) instead of log volumes.

Ports

  • 80/tcp: HTTP port on which Nginx listens.

Description

Image providing Nginx HTTP server.

The intended use of this image is that it is extended for images which serve content over the HTTP.

Access logs are formatted as JSON. You can use defined json log format to format additional access logs as JSON as well. When LOG_TO_STDOUT is set to 1, Docker image logs output to stdout and stderr. All stdout output is JSON.

When extending the image, you can put sites configuration files under /etc/nginx/sites-enabled/ to add custom sites.

Alternatively, you can mount a volume into /etc/nginx/sites-volume/ directory and provide sites there.

When you are extending this image, you can add a script /etc/service/nginx/run.initialization which will be run at a container startup, after the container is initialized, but before the Nginx daemon is run.

GitHub mirror

There is also a read-only GitHub mirror available, if you need to fork the project there.

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.