Advertisement
raisiqueira

docker-compose.yml

Jul 6th, 2017
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.75 KB | None | 0 0
  1. version: '3'
  2. services:
  3.   nginx:
  4.     image: nginx
  5.     labels:
  6.         com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
  7.     container_name: nginx
  8.     restart: unless-stopped
  9.     ports:
  10.      - "80:80"
  11.       - "443:443"
  12.     volumes:
  13.      - ./data/nginx/conf.d:/etc/nginx/conf.d
  14.       - ./data/nginx/vhost.d:/etc/nginx/vhost.d
  15.       - ./data/nginx/html:/usr/share/nginx/html
  16.       - ./data/nginx/certs:/etc/nginx/certs:ro
  17.  
  18.   nginx-gen:
  19.     image: jwilder/docker-gen
  20.     command: -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
  21.     container_name: nginx-gen
  22.     restart: unless-stopped
  23.     volumes:
  24.      - ./data/nginx/conf.d:/etc/nginx/conf.d
  25.       - ./data/nginx/vhost.d:/etc/nginx/vhost.d
  26.       - ./data/nginx/html:/usr/share/nginx/html
  27.       - ./data/nginx/certs:/etc/nginx/certs:ro
  28.       - /var/run/docker.sock:/tmp/docker.sock:ro
  29.       - ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
  30.  
  31. #  nginx-letsencrypt:
  32. #    image: jrcs/letsencrypt-nginx-proxy-companion
  33. #    container_name: nginx-letsencrypt
  34. #    restart: unless-stopped
  35. #    volumes:
  36. #      - ./data/nginx/conf.d:/etc/nginx/conf.d
  37. #      - ./data/nginx/html:/usr/share/nginx/html
  38. #      - ./data/nginx/certs:/etc/nginx/certs:rw
  39. #      - /var/run/docker.sock:/var/run/docker.sock:ro
  40. #    environment:
  41. #      NGINX_DOCKER_GEN_CONTAINER: "nginx-gen"
  42. #      NGINX_PROXY_CONTAINER: "nginx"
  43.  
  44. #  site:
  45. #    build: ../proxy3/c
  46. #    environment:
  47. #      VIRTUAL_HOST: laboratorioimec.com.br,www.laboratorioimec.com.br
  48. #      VIRTUAL_PROTO: https
  49. #      VIRTUAL_PORT: 443
  50. #      LETSENCRYPT_HOST: laboratorioimec.com.br, www.laboratorioimec.com.br
  51. #      LETSENCRYPT_EMAIL: rai@laboratorioimec.com.br
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement