Created
June 19, 2017 18:24
-
-
Save onesmartguy/656ae52b38e48d320d38d52fda0edc49 to your computer and use it in GitHub Desktop.
docker-stack.yml
This file contains 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
nginx-letsencrypt: | |
image: 'jrcs/letsencrypt-nginx-proxy-companion:latest' | |
volumes: | |
- '/path/to/certs:/etc/nginx/certs' | |
- '/var/run/docker.sock:/var/run/docker.sock:ro' | |
volumes_from: | |
- nginx-proxy | |
nginx-proxy: | |
image: 'jwilder/nginx-proxy:latest' | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: 'true' | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- '/path/to/certs:/etc/nginx/certs:ro' | |
- /etc/nginx/vhost.d | |
- /usr/share/nginx/html | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment