Last active
August 30, 2018 20:28
-
-
Save luizeof/f60e5bdb484274ea926bc44f0aedb446 to your computer and use it in GitHub Desktop.
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
#!/bash/bin | |
# Instala o Proxy Reverso com o Nginx e o SSL | |
docker run -d --restart always -p 80:80 -p 443:443 \ | |
--name nginx-proxy \ | |
-v /path/to/certs:/etc/nginx/certs:ro \ | |
-v /etc/nginx/vhost.d \ | |
-v /usr/share/nginx/html \ | |
-v /var/run/docker.sock:/tmp/docker.sock:ro \ | |
--label com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy \ | |
jwilder/nginx-proxy:latest | |
docker run -d --restart always \ | |
--name letsencrypt-ssl \ | |
-v /path/to/certs:/etc/nginx/certs:rw \ | |
-v /var/run/docker.sock:/var/run/docker.sock:ro \ | |
--volumes-from nginx-proxy \ | |
jrcs/letsencrypt-nginx-proxy-companion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment