You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/entrypoint.sh
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -181,14 +181,16 @@ if [[ "$*" == "/bin/bash /app/start.sh" ]]; then
181
181
echo"Error: can't get nginx-proxy container ID !">&2
182
182
echo"Check that you are doing one of the following :">&2
183
183
echo -e "\t- Use the --volumes-from option to mount volumes from the nginx-proxy container.">&2
184
-
echo -e "\t- Set the NGINX_PROXY_CONTAINER env var on the letsencrypt-companion container to the name of the nginx-proxy container.">&2
185
-
echo -e "\t- Label the nginx-proxy container to use with 'com.github.nginx-proxy.nginx'.">&2
184
+
echo -e "\t- Set the NGINX_PROXY_CONTAINER env var on the acme-companion container to the name of the nginx-proxy container.">&2
185
+
echo -e "\t- Label the nginx-proxy container to use with '${default_nginx_proxy_container_label}'.">&2
186
+
echo -e "\t- Label the nginx-proxy container with a custom label and set NGINX_PROXY_CONTAINER_LABEL env var on the acme-companion container to match the custom label.">&2
echo"Error: can't get docker-gen container id !">&2
189
190
echo"If you are running a three containers setup, check that you are doing one of the following :">&2
190
-
echo -e "\t- Set the NGINX_DOCKER_GEN_CONTAINER env var on the letsencrypt-companion container to the name of the docker-gen container.">&2
191
-
echo -e "\t- Label the docker-gen container to use with 'com.github.nginx-proxy.docker-gen'.">&2
191
+
echo -e "\t- Set the NGINX_DOCKER_GEN_CONTAINER env var on the acme-companion container to the name of the docker-gen container.">&2
192
+
echo -e "\t- Label the docker-gen container to use with '${default_nginx_docker_gen_container_label}'.">&2
193
+
echo -e "\t- Label the docker-gen container with a custom label and set NGINX_DOCKER_GEN_CONTAINER_LABEL env var on the acme-companion container to match the custom label.">&2
Copy file name to clipboardExpand all lines: docs/Getting-containers-IDs.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ There are three methods to inform the **acme-companion** container of the **ngin
6
6
7
7
*`label` method: add the label `com.github.nginx-proxy.nginx` to the **nginx**/**nginx-proxy** container.
8
8
9
+
* Optional. Using a custom `label`: add a custom label, e.g. :`custom.label.nginx` to the **nginx**/**nginx-proxy** container and set the environment variable `NGINX_PROXY_CONTAINER_LABEL` to match the custom label.
10
+
9
11
*`environment variable` method: assign a fixed name to the **nginx**/**nginx-proxy** container with `container_name:` and set the environment variable `NGINX_PROXY_CONTAINER` to this name on the **acme-companion** container.
10
12
11
13
*`volumes_from` method. Using this method, the **acme-companion** container will get the **nginx**/**nginx-proxy** container ID from the volumes it got using the `volumes_from` option.
@@ -14,6 +16,8 @@ And two methods to inform the **acme-companion** container of the **docker-gen**
14
16
15
17
*`label` method: add the label `com.github.nginx-proxy.docker-gen` to the **docker-gen** container.
16
18
19
+
* Optional. Using a custom `label`: add a custom label, e.g. :`custom.label.docker-gen` to the **docker-gen** container and set the environment variable `NGINX_DOCKER_GEN_CONTAINER_LABEL` to match the custom label.
20
+
17
21
*`environment variable` method: assign a fixed name to the **docker-gen** container with `container_name:` and set the environment variable `NGINX_DOCKER_GEN_CONTAINER` to this name on the **acme-companion** container.
18
22
19
23
The methods for each container are sorted by order of precedence, meaning that if you use both the label and the volumes_from method, the ID of the **nginx**/**nginx-proxy** container that will be used will be the one found using the label. **There is no point in using more than one method at a time for either the nginx/nginx-proxy or docker-gen container beside potentially confusing yourself**.
0 commit comments