Skip to content

Instantly share code, notes, and snippets.

@varinen
Created June 21, 2020 07:05
Show Gist options
  • Save varinen/236b1ed2caa3a851fc338b0d29ebc36b to your computer and use it in GitHub Desktop.
Save varinen/236b1ed2caa3a851fc338b0d29ebc36b to your computer and use it in GitHub Desktop.
version: "3"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- letsencrypt-certs:/etc/nginx/certs
- letsencrypt-vhost-d:/etc/nginx/vhost.d
- letsencrypt-html:/usr/share/nginx/html
letsencrypt-proxy:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- letsencrypt-certs:/etc/nginx/certs
- letsencrypt-vhost-d:/etc/nginx/vhost.d
- letsencrypt-html:/usr/share/nginx/html
environment:
- [email protected]
- NGINX_PROXY_CONTAINER=nginx-proxy
networks:
default:
external:
name: nginx-proxy
volumes:
letsencrypt-certs:
letsencrypt-vhost-d:
letsencrypt-html:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment