Sign inSign up

cvidal/nginxproxy

By cvidal

Updated over 9 years ago

nginx server configured as a reverse proxy

Image
0

961

cvidal/nginxproxy repository overview

Notes:

This image use docker-gen https://github.com/jwilder/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

--

Config:

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

Tag summary

Content type

Image

Digest

Size

110 MB

Last updated

over 9 years ago

docker pull cvidal/nginxproxy