Skip to content

Instantly share code, notes, and snippets.

@cjmellor
Created March 1, 2021 09:39
Show Gist options
  • Save cjmellor/eaf2ad6ab3f59e3b346eb8d31ee1b3f0 to your computer and use it in GitHub Desktop.
Save cjmellor/eaf2ad6ab3f59e3b346eb8d31ee1b3f0 to your computer and use it in GitHub Desktop.
NGINX Proxy w/ Docker
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
# depends_on:
# - web
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
web:
image: nginx
restart: always
environment:
- VIRTUAL_HOST={DOMAIN}.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment