2
0

nodefault.yml 797 B

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