1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 22:35:45 +00:00

optional IPv6 support

Fix #127 and fix #717 by improving #713
This commit is contained in:
Thomas LEVEIL
2017-02-14 22:48:29 +01:00
committed by Thomas LEVEIL
parent c0f60087c3
commit f0951df040
2 changed files with 19 additions and 0 deletions

View File

@ -45,6 +45,12 @@ $ curl -H "Host: whoami.local" localhost
I'm 5b129ab83266
```
### IPv6 support
You can activate the IPv6 support for the nginx-proxy container by passing the value `true` to the `ENABLE_IPV6` environment variable:
$ docker run -d -p 80:80 -e ENABLE_IPV6=true -v /var/run/docker.sock:/tmp/docker.sock:ro 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.