Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nginx:
- image: nginx
- labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
- container_name: nginx
- restart: unless-stopped
- ports:
- - "80:80"
- - "443:443"
- volumes:
- - ./data/nginx/conf.d:/etc/nginx/conf.d
- - ./data/nginx/vhost.d:/etc/nginx/vhost.d
- - ./data/nginx/html:/usr/share/nginx/html
- - ./data/nginx/certs:/etc/nginx/certs:ro
- nginx-gen:
- image: jwilder/docker-gen
- command: -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
- container_name: nginx-gen
- restart: unless-stopped
- volumes:
- - ./data/nginx/conf.d:/etc/nginx/conf.d
- - ./data/nginx/vhost.d:/etc/nginx/vhost.d
- - ./data/nginx/html:/usr/share/nginx/html
- - ./data/nginx/certs:/etc/nginx/certs:ro
- - /var/run/docker.sock:/tmp/docker.sock:ro
- - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- # nginx-letsencrypt:
- # image: jrcs/letsencrypt-nginx-proxy-companion
- # container_name: nginx-letsencrypt
- # restart: unless-stopped
- # volumes:
- # - ./data/nginx/conf.d:/etc/nginx/conf.d
- # - ./data/nginx/html:/usr/share/nginx/html
- # - ./data/nginx/certs:/etc/nginx/certs:rw
- # - /var/run/docker.sock:/var/run/docker.sock:ro
- # environment:
- # NGINX_DOCKER_GEN_CONTAINER: "nginx-gen"
- # NGINX_PROXY_CONTAINER: "nginx"
- # site:
- # build: ../proxy3/c
- # environment:
- # VIRTUAL_HOST: laboratorioimec.com.br,www.laboratorioimec.com.br
- # VIRTUAL_PROTO: https
- # VIRTUAL_PORT: 443
- # LETSENCRYPT_HOST: laboratorioimec.com.br, www.laboratorioimec.com.br
- # LETSENCRYPT_EMAIL: rai@laboratorioimec.com.br
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement