Created
September 15, 2019 05:59
-
-
Save optimistic5/9576ae9433bf065082ffaa3e1446a381 to your computer and use it in GitHub Desktop.
docker-compose for jwilder
This file contains hidden or 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:alpine | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./current/public:/usr/share/nginx/html | |
- ./certs:/etc/nginx/certs:ro | |
- ./vhost:/etc/nginx/vhost.d | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- ./pass:/etc/nginx/htpasswd:ro | |
labels: | |
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
restart: always | |
environment: | |
NGINX_PROXY_CONTAINER: nginx-proxy | |
NGINX_DOCKER_GEN_CONTAINER: nginx-proxy | |
volumes: | |
- ./certs:/etc/nginx/certs:rw | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- ./vhost:/etc/nginx/vhost.d | |
- ./current/public:/usr/share/nginx/html | |
networks: | |
default: | |
external: | |
name: nginx-proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment