test_dockergen.base.yml 645 B

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