untrusteddefault.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. volumes:
  2. nginx_conf:
  3. services:
  4. sut:
  5. profiles:
  6. - singleContainer
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  10. - &certs ./withdefault.certs:/etc/nginx/certs:ro
  11. environment: &nginxProxyEnv
  12. TRUST_DEFAULT_CERT: "false"
  13. sut-dockergen:
  14. profiles:
  15. - separateContainers
  16. image: nginxproxy/nginx-proxy:test-dockergen
  17. volumes:
  18. - &confVolume nginx_conf:/etc/nginx/conf.d
  19. - *dockerSocket
  20. - *certs
  21. environment: *nginxProxyEnv
  22. sut-nginx:
  23. profiles:
  24. - separateContainers
  25. container_name: nginx-proxy
  26. image: nginx:alpine
  27. volumes:
  28. - *confVolume
  29. - *certs
  30. labels:
  31. - "com.github.nginx-proxy.nginx-proxy.nginx"
  32. https-and-http:
  33. image: web
  34. expose:
  35. - "81"
  36. environment:
  37. WEB_PORTS: "81"
  38. VIRTUAL_HOST: https-and-http.nginx-proxy.test
  39. https-only:
  40. image: web
  41. expose:
  42. - "82"
  43. environment:
  44. WEB_PORTS: "82"
  45. VIRTUAL_HOST: https-only.nginx-proxy.test
  46. HTTPS_METHOD: nohttp
  47. http-only:
  48. image: web
  49. expose:
  50. - "83"
  51. environment:
  52. WEB_PORTS: "83"
  53. VIRTUAL_HOST: http-only.nginx-proxy.test
  54. HTTPS_METHOD: nohttps
  55. missing-cert:
  56. image: web
  57. expose:
  58. - "84"
  59. environment:
  60. WEB_PORTS: "84"
  61. VIRTUAL_HOST: missing-cert.nginx-proxy.test