2
0

untrusteddefault.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:
  22. <<: *nginxProxyEnv
  23. sut-nginx:
  24. profiles:
  25. - separateContainers
  26. container_name: nginx-proxy
  27. image: nginx:alpine
  28. volumes:
  29. - *confVolume
  30. - *certs
  31. labels:
  32. - "com.github.nginx-proxy.nginx-proxy.nginx"
  33. https-and-http:
  34. image: web
  35. expose:
  36. - "81"
  37. environment:
  38. WEB_PORTS: "81"
  39. VIRTUAL_HOST: https-and-http.nginx-proxy.test
  40. https-only:
  41. image: web
  42. expose:
  43. - "82"
  44. environment:
  45. WEB_PORTS: "82"
  46. VIRTUAL_HOST: https-only.nginx-proxy.test
  47. HTTPS_METHOD: nohttp
  48. http-only:
  49. image: web
  50. expose:
  51. - "83"
  52. environment:
  53. WEB_PORTS: "83"
  54. VIRTUAL_HOST: http-only.nginx-proxy.test
  55. HTTPS_METHOD: nohttps
  56. missing-cert:
  57. image: web
  58. expose:
  59. - "84"
  60. environment:
  61. WEB_PORTS: "84"
  62. VIRTUAL_HOST: missing-cert.nginx-proxy.test