Skip to content

Instantly share code, notes, and snippets.

@derpixler
Created February 7, 2020 14:12
Show Gist options
  • Save derpixler/4cac41ae8711d3bf3e758d59839199af to your computer and use it in GitHub Desktop.
Save derpixler/4cac41ae8711d3bf3e758d59839199af to your computer and use it in GitHub Desktop.
Nginx Proxy for docker
version: "3.1"
services:
nginx-proxy:
image: jwilder/nginx-proxy:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./certs:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: unless-stopped
networks:
default:
external:
name: nginx-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment