Skip to content

Commit a1af285

Browse files
committed
Use fully qualified label name
1 parent 8b71ed5 commit a1af285

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ $ 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 \
33+
--label com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true \
3434
jwilder/nginx-proxy
3535
```
36-
The "jrcs.nginx_letsencrypt_companion.is_proxy=true" label is needed so that the letsencrypt container knows which nginx proxy container to use.
36+
The "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" label is needed so that the letsencrypt container knows which nginx proxy container to use.
3737

3838
* Second start this container:
3939
```bash
@@ -74,7 +74,7 @@ $ docker run -d -p 80:80 -p 443:443 \
7474
-v /etc/nginx/vhost.d \
7575
-v /usr/share/nginx/html \
7676
-v /path/to/certs:/etc/nginx/certs:ro \
77-
--label jrcs.nginx_letsencrypt_companion.is_proxy=true \
77+
--label com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true \
7878
nginx
7979
```
8080

@@ -150,7 +150,7 @@ $ docker run -d \
150150

151151
* `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.
152152

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.
153+
* The "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_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.
154154

155155
#### Examples:
156156

app/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ function get_nginx_proxy_cid {
3434
fi
3535
done
3636
# Check if any container has been labelled as the nginx proxy container.
37-
local labeled_cid=$(docker_api "/containers/json" | jq -r '.[] | select( .Labels["jrcs.nginx_letsencrypt_companion.is_proxy"] == "true")|.Id')
37+
local labeled_cid=$(docker_api "/containers/json" | jq -r '.[] | select( .Labels["com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"] == "true")|.Id')
3838
if [[ ! -z "${labeled_cid:-}" ]]; then
3939
export NGINX_PROXY_CONTAINER=$labeled_cid
4040
fi
4141
if [[ -z "${NGINX_PROXY_CONTAINER:-}" ]]; then
4242
echo "Error: can't get nginx-proxy container id !" >&2
43-
echo "Check that you use the --volumes-from option to mount volumes from the nginx-proxy or label the nginx proxy container to use with 'jrcs.nginx_letsencrypt_companion.is_proxy=true'." >&2
43+
echo "Check that you use the --volumes-from option to mount volumes from the nginx-proxy or label the nginx proxy container to use with 'com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true'." >&2
4444
exit 1
4545
fi
4646
}

0 commit comments

Comments
 (0)