Last active
January 28, 2016 07:59
-
-
Save dawnerd/d8a92055fdbbf6f47edc to your computer and use it in GitHub Desktop.
Env to start docker-proxy with letsencrypt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'Starting nginx-proxy' | |
docker run -d -p 80:80 -p 443:443 \ | |
--name nginx-proxy \ | |
-v /var/sites/certs:/etc/nginx/certs:ro \ | |
-v /etc/nginx/vhost.d \ | |
-v /usr/share/nginx/html \ | |
-v /var/run/docker.sock:/tmp/docker.sock:ro \ | |
jwilder/nginx-proxy | |
echo 'Starting nginx-proxy ssl' | |
docker run -d \ | |
-v /var/sites/certs:/etc/nginx/certs:rw \ | |
--volumes-from nginx-proxy \ | |
-v /var/run/docker.sock:/var/run/docker.sock:ro \ | |
jrcs/letsencrypt-nginx-proxy-companion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment