diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/README.md b/README.md index b7679bc..dd390cc 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Then start any containers you want proxied with an env var VIRTUAL_HOST=subdomai Provided your DNS is setup to forward foo.bar.com to the a host running nginx-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set. +If you want to get the nginx logs in your current working directory, simply: + + $ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -v $(pwd):/var/log/nginx -t jwilder/nginx-proxy + ### Multiple Ports If your container exposes multiple ports, nginx-proxy will default to the service running on port 80. If you need to specify a different port, you can set a VIRTUAL_PORT env var to select a different one. If your container only exposes one port and it has a VIRTUAL_HOST env var set, that port will be selected.