Skip to content

Commit e1c685b

Browse files
committed
Update boot2docker instructions
1 parent 2d04176 commit e1c685b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Then start any containers you want proxied with an env var `VIRTUAL_HOST=subdoma
1616

1717
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.
1818

19+
If your are using `boot2docker` start `nginx-proxy` with:
20+
21+
$ $(boot2docker shellinit)
22+
$ docker run -p 80:80 -e DOCKER_HOST -e DOCKER_CERT_PATH -e DOCKER_TLS_VERIFY -v $DOCKER_CERT_PATH:$DOCKER_CERT_PATH -it jwilder/nginx-proxy
23+
1924
### Multiple Ports
2025

2126
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.

0 commit comments

Comments
 (0)