Public Repository

Last pushed: 2 years ago
Short Description
nginx server configured as a reverse proxy
Full Description


This image use docker-gen to detect when ne containers are started.

If a newly started container contain an environement variable called VIRTUAL_HOST
it will define an upstream for that VIRTUAL_HOST
and will route all traffic comming on each exposed port to to corresponding updastream

If thee newly started container contain an environment variable called VIRTUAL_HOST_ALIS
it will create 301 redirection to the corresponding VIRTUAL_HOST respecting port settings

Entry point:


Config notes:

By default no port are exposed. This is your job to expose the port on where traffic need to be routed



  - /var/run/docker.sock:/tmp/docker.sock:ro (/tmp/docker.sock should be mapped to the docker socket of the Host machine)
  - ./log:/log
Docker Pull Command