Skip to content

Instantly share code, notes, and snippets.

@ftes
Created April 11, 2016 14:32
Show Gist options
  • Save ftes/07d560e43f0238f0f8b2baf801d0e5ae to your computer and use it in GitHub Desktop.
Save ftes/07d560e43f0238f0f8b2baf801d0e5ae to your computer and use it in GitHub Desktop.
nginx-letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion:latest'
volumes:
- '/etc/ssl/certs:/etc/nginx/certs'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
volumes_from:
- nginx-proxy
nginx-proxy:
image: 'jwilder/nginx-proxy:latest'
environment:
- DEFAULT_HOST=url.com
ports:
- '80:80'
- '443:443'
volumes:
- '/etc/ssl/certs:/etc/nginx/certs:ro'
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- /etc/nginx/vhost.d
- /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment