Skip to content

Instantly share code, notes, and snippets.

@onesmartguy
Last active June 19, 2017 19:27
Show Gist options
  • Save onesmartguy/af6a2c3632cb4bd3ef665b54d379ea6a to your computer and use it in GitHub Desktop.
Save onesmartguy/af6a2c3632cb4bd3ef665b54d379ea6a to your computer and use it in GitHub Desktop.
docker-stack.yml
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