Created
March 1, 2021 09:39
-
-
Save cjmellor/eaf2ad6ab3f59e3b346eb8d31ee1b3f0 to your computer and use it in GitHub Desktop.
NGINX Proxy w/ Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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