Created
April 15, 2016 21:53
-
-
Save jmillerdesign/2a3a6615bc301ad0c687ea5a698d7dff to your computer and use it in GitHub Desktop.
nginx-proxy letsencrypt-nginx-proxy-companion docker-compose
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
nginxproxy: | |
image: jwilder/nginx-proxy:latest | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- /root/certs:/etc/nginx/certs:ro | |
- /etc/nginx/vhost.d | |
- /usr/share/nginx/html | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion:latest | |
volumes_from: | |
- nginxproxy | |
volumes: | |
- /root/certs:/etc/nginx/certs:rw | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
www: | |
image: dockercloud/hello-world:latest | |
expose: | |
- 80 | |
- 443 | |
environment: | |
VIRTUAL_HOST: letsencrypt-test.example.com | |
LETSENCRYPT_HOST: letsencrypt-test.example.com | |
LETSENCRYPT_EMAIL: [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment