1
0

docs: user named volumes in all examples

This commit is contained in:
Nicolas Duchon 2021-03-26 15:24:42 +01:00
parent 87432987b2
commit 90de0cec71
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7
5 changed files with 20 additions and 18 deletions

@ -51,9 +51,9 @@ $ docker run --detach \
--name nginx-proxy \ --name nginx-proxy \
--publish 80:80 \ --publish 80:80 \
--publish 443:443 \ --publish 443:443 \
--volume /etc/nginx/certs \ --volume certs:/etc/nginx/certs \
--volume /etc/nginx/vhost.d \ --volume vhost:/etc/nginx/vhost.d \
--volume /usr/share/nginx/html \ --volume html:/usr/share/nginx/html \
--volume /var/run/docker.sock:/tmp/docker.sock:ro \ --volume /var/run/docker.sock:/tmp/docker.sock:ro \
jwilder/nginx-proxy jwilder/nginx-proxy
``` ```
@ -69,7 +69,7 @@ $ docker run --detach \
--name nginx-proxy-letsencrypt \ --name nginx-proxy-letsencrypt \
--volumes-from nginx-proxy \ --volumes-from nginx-proxy \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume /etc/acme.sh \ --volume acme:/etc/acme.sh \
--env "DEFAULT_EMAIL=mail@yourdomain.tld" \ --env "DEFAULT_EMAIL=mail@yourdomain.tld" \
jrcs/letsencrypt-nginx-proxy-companion jrcs/letsencrypt-nginx-proxy-companion
``` ```

@ -28,10 +28,10 @@ $ docker run --detach \
--publish 80:80 \ --publish 80:80 \
--publish 443:443 \ --publish 443:443 \
--name nginx \ --name nginx \
--volume /etc/nginx/conf.d \ --volume conf:/etc/nginx/conf.d \
--volume /etc/nginx/vhost.d \ --volume vhost:/etc/nginx/vhost.d \
--volume /usr/share/nginx/html \ --volume html:/usr/share/nginx/html \
--volume /etc/nginx/certs \ --volume certs:/etc/nginx/certs \
nginx nginx
``` ```
@ -61,7 +61,7 @@ $ docker run --detach \
--name nginx-proxy-letsencrypt \ --name nginx-proxy-letsencrypt \
--volumes-from nginx-proxy \ --volumes-from nginx-proxy \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume /etc/acme.sh \ --volume acme:/etc/acme.sh \
--env "NGINX_DOCKER_GEN_CONTAINER=nginx-proxy-gen" \ --env "NGINX_DOCKER_GEN_CONTAINER=nginx-proxy-gen" \
--env "DEFAULT_EMAIL=mail@yourdomain.tld" \ --env "DEFAULT_EMAIL=mail@yourdomain.tld" \
jrcs/letsencrypt-nginx-proxy-companion jrcs/letsencrypt-nginx-proxy-companion

@ -21,9 +21,9 @@ $ docker run --detach \
--name nginx-proxy \ --name nginx-proxy \
--publish 80:80 \ --publish 80:80 \
--publish 443:443 \ --publish 443:443 \
--volume /etc/nginx/certs \ --volume certs:/etc/nginx/certs \
--volume /etc/nginx/vhost.d \ --volume vhost:/etc/nginx/vhost.d \
--volume /usr/share/nginx/html \ --volume html:/usr/share/nginx/html \
--volume /var/run/docker.sock:/tmp/docker.sock:ro \ --volume /var/run/docker.sock:/tmp/docker.sock:ro \
jwilder/nginx-proxy jwilder/nginx-proxy
``` ```
@ -39,7 +39,7 @@ $ docker run --detach \
--name nginx-proxy-letsencrypt \ --name nginx-proxy-letsencrypt \
--volumes-from nginx-proxy \ --volumes-from nginx-proxy \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume /etc/acme.sh \ --volume acme:/etc/acme.sh \
--env "DEFAULT_EMAIL=mail@yourdomain.tld" \ --env "DEFAULT_EMAIL=mail@yourdomain.tld" \
jrcs/letsencrypt-nginx-proxy-companion jrcs/letsencrypt-nginx-proxy-companion
``` ```

@ -10,8 +10,9 @@ For example
$ docker run --detach \ $ docker run --detach \
--name nginx-proxy-letsencrypt \ --name nginx-proxy-letsencrypt \
--volumes-from nginx-proxy \ --volumes-from nginx-proxy \
--volume /path/to/certs:/etc/nginx/certs:rw \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume certs:/etc/nginx/certs:rw \
--volume acme:/etc/acme.sh \
--env "ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory" \ --env "ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory" \
jrcs/letsencrypt-nginx-proxy-companion jrcs/letsencrypt-nginx-proxy-companion
``` ```

@ -7,10 +7,10 @@ $ docker run --detach \
--name nginx-proxy \ --name nginx-proxy \
--publish 80:80 \ --publish 80:80 \
--publish 443:443 \ --publish 443:443 \
--volume /etc/nginx/certs \ --volume certs:/etc/nginx/certs \
--volume /etc/nginx/vhost.d \ --volume vhost:/etc/nginx/vhost.d \
--volume /etc/nginx/conf.d \ --volume conf:/etc/nginx/conf.d \
--volume /usr/share/nginx/html \ --volume html:/usr/share/nginx/html \
--volume /var/run/docker.sock:/tmp/docker.sock:ro \ --volume /var/run/docker.sock:/tmp/docker.sock:ro \
jwilder/nginx-proxy jwilder/nginx-proxy
``` ```
@ -19,6 +19,7 @@ $ docker run --detach \
--name nginx-proxy-letsencrypt \ --name nginx-proxy-letsencrypt \
--volumes-from nginx-proxy \ --volumes-from nginx-proxy \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume acme:/etc/acme.sh \
--volume /path/to/your/config_file:/app/letsencrypt_user_data:ro \ --volume /path/to/your/config_file:/app/letsencrypt_user_data:ro \
jrcs/letsencrypt-nginx-proxy-companion jrcs/letsencrypt-nginx-proxy-companion
``` ```