2
0

test_dockergen.yml 618 B

1234567891011121314151617181920212223242526
  1. services:
  2. nginx:
  3. image: nginx
  4. container_name: nginx
  5. volumes:
  6. - nginx_conf:/etc/nginx/conf.d:ro
  7. dockergen:
  8. image: nginxproxy/docker-gen
  9. command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
  10. volumes:
  11. - /var/run/docker.sock:/tmp/docker.sock:ro
  12. - ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
  13. - nginx_conf:/etc/nginx/conf.d
  14. web:
  15. image: web
  16. container_name: whoami
  17. expose:
  18. - "80"
  19. environment:
  20. WEB_PORTS: 80
  21. VIRTUAL_HOST: whoami.nginx.container.docker
  22. volumes:
  23. nginx_conf: