Skip to content

Instantly share code, notes, and snippets.

@johnrom
Created June 7, 2016 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrom/f3f4393b3ae334d49731a49a21118102 to your computer and use it in GitHub Desktop.
Save johnrom/f3f4393b3ae334d49731a49a21118102 to your computer and use it in GitHub Desktop.
# The NGINX Reverse Proxy that routes to other containers
myproxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- ./_conf/certs:/etc/nginx/certs
ports:
- "80:80"
- "443:443"
### mysite_start ###
mysite:
image: httpd:2.4
environment:
- VIRTUAL_HOST=mysite.local
- HTTPS_METHOD=noredirect
### mysite_end ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment