mirror of
https://github.com/wassname/nginx-proxy-letsencrypt.git
synced 2026-09-09 11:27:33 +08:00
Update Let's Encrypt example with ports and docker.sock volume
This commit is contained in:
@@ -136,7 +136,14 @@ The `LETSENCRYPT_HOST` variable most likely needs to be the same as the `VIRTUAL
|
||||
|
||||
For example
|
||||
|
||||
$ docker run -d -e VIRTUAL_HOST="foo.bar.com,bar.com" -e LETSENCRYPT_HOST="foo.bar.com,bar.com" -e LETSENCRYPT_EMAIL="foo@bar.com" dmp1ce/nginx-proxy-letsencrypt
|
||||
```
|
||||
$ docker run -d -p 80:80 -p 443:443 \
|
||||
-e VIRTUAL_HOST="foo.bar.com,bar.com" \
|
||||
-e LETSENCRYPT_HOST="foo.bar.com,bar.com" \
|
||||
-e LETSENCRYPT_EMAIL="foo@bar.com" \
|
||||
-v /var/run/docker.sock:/tmp/docker.sock:ro \
|
||||
dmp1ce/nginx-proxy-letsencrypt
|
||||
```
|
||||
|
||||
### Basic Authentication Support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user