From e1c685b679ad29c7617972adb3329348ec0881a4 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Mon, 20 Jul 2015 10:05:01 -0600 Subject: [PATCH] Update boot2docker instructions --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b144796..d55cd39 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ Then start any containers you want proxied with an env var `VIRTUAL_HOST=subdoma 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 your are using `boot2docker` start `nginx-proxy` with: + + $ $(boot2docker shellinit) + $ 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 + ### 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.