Skip to content

Commit 07b04f2

Browse files
authored
Update the README with instructions on new label
1 parent 3c87718 commit 07b04f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ $ docker run -d -p 80:80 -p 443:443 \
3030
-v /etc/nginx/vhost.d \
3131
-v /usr/share/nginx/html \
3232
-v /var/run/docker.sock:/tmp/docker.sock:ro \
33+
--label jrcs.nginx_letsencrypt_companion.is_proxy=true \
3334
jwilder/nginx-proxy
3435
```
36+
The "jrcs.nginx_letsencrypt_companion.is_proxy" label is needed so that the letsencrypt container knows which nginx proxy container to use.
3537

3638
* Second start this container:
3739
```bash
3840
$ docker run -d \
3941
-v /path/to/certs:/etc/nginx/certs:rw \
40-
--volumes-from nginx-proxy \
4142
-v /var/run/docker.sock:/var/run/docker.sock:ro \
4243
jrcs/letsencrypt-nginx-proxy-companion
4344
```
@@ -73,6 +74,7 @@ $ docker run -d -p 80:80 -p 443:443 \
7374
-v /etc/nginx/vhost.d \
7475
-v /usr/share/nginx/html \
7576
-v /path/to/certs:/etc/nginx/certs:ro \
77+
--label jrcs.nginx_letsencrypt_companion.is_proxy=true \
7678
nginx
7779
```
7880

@@ -148,7 +150,7 @@ $ docker run -d \
148150

149151
* `DEBUG` - Set it to `true` to enable debugging of the entrypoint script and generation of LetsEncrypt certificates, which could help you pin point any configuration issues.
150152

151-
* `NGINX_PROXY_CONTAINER`- If for some reason you can't use the docker --volumes-from option, you can specify the name or id of the nginx-proxy container with this variable.
153+
* The "jrcs.nginx_letsencrypt_companion.is_proxy=true" label - set this label on the nginx-proxy container to tell the docker-letsencrypt-nginx-proxy-companion container to use it as the proxy.
152154

153155
#### Examples:
154156

0 commit comments

Comments
 (0)