Last active
June 19, 2017 19:27
-
-
Save onesmartguy/af6a2c3632cb4bd3ef665b54d379ea6a 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:/etc/nginx/vhost.d' | |
- '/etc/nginx/html:/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