withdefault.yml 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "2"
  2. services:
  3. sut:
  4. image: nginxproxy/nginx-proxy:test
  5. volumes:
  6. - /var/run/docker.sock:/tmp/docker.sock:ro
  7. - ./withdefault.certs:/etc/nginx/certs:ro
  8. https-and-http:
  9. image: web
  10. expose:
  11. - "81"
  12. environment:
  13. WEB_PORTS: "81"
  14. VIRTUAL_HOST: https-and-http.nginx-proxy.test
  15. https-only:
  16. image: web
  17. expose:
  18. - "82"
  19. environment:
  20. WEB_PORTS: "82"
  21. VIRTUAL_HOST: https-only.nginx-proxy.test
  22. HTTPS_METHOD: nohttp
  23. http-only:
  24. image: web
  25. expose:
  26. - "83"
  27. environment:
  28. WEB_PORTS: "83"
  29. VIRTUAL_HOST: http-only.nginx-proxy.test
  30. HTTPS_METHOD: nohttps
  31. missing-cert:
  32. image: web
  33. expose:
  34. - "84"
  35. environment:
  36. WEB_PORTS: "84"
  37. VIRTUAL_HOST: missing-cert.nginx-proxy.test