Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Nginx-naxsi with autodiscovery (WIP)

This repository contains Dockerfile of nginx-naxsi for Docker's automated build published to the public Docker Hub Registry.
This provides a stable nginx with naxsi extensions.

It uses a custom package built from nginx 1.6.2 and naxsi 0.54rc1.

On top of it, it is intended to be confd driven with dynamic configuration based on etcd autodiscovery (WIP the conf must be provided at the moment).

Base Docker Image


docker run -d -p 80:80 xcgd/nginx-naxsi-autodiscovery

By default, the deamon is set to off, whatever the provided conf. This ensure that Nginx stays in the foreground so that Docker can track the process properly (otherwise your container will stop immediately after starting)!

Attach persistent/shared directories

docker run -d -p 80:80 -v <sites-enabled-dir>:/etc/nginx/sites-enabled -v <certs-dir>:/etc/nginx/certs -v <log-dir>:/var/log/nginx -v <conf-dir>:/etc/nginx -v <conf.d-dir>:/etc/nginx/conf.d dockerfile/nginx

If you want to use another container as the site to redirect to, you can also add --link <container-name>:<name-to-use-in-nginx-conf>.

After few seconds, open http://<host> to see the welcome page.

Docker Pull Command
Source Repository