withdefault.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. sut-dockergen:
  12. profiles:
  13. - separateContainers
  14. image: nginxproxy/nginx-proxy:test-dockergen
  15. volumes:
  16. - &confVolume nginx_conf:/etc/nginx/conf.d
  17. - *dockerSocket
  18. - *certs
  19. sut-nginx:
  20. profiles:
  21. - separateContainers
  22. container_name: nginx-proxy
  23. image: nginx:alpine
  24. volumes:
  25. - *confVolume
  26. - *certs
  27. labels:
  28. - "com.github.nginx-proxy.nginx-proxy.nginx"
  29. https-and-http:
  30. image: web
  31. expose:
  32. - "81"
  33. environment:
  34. WEB_PORTS: "81"
  35. VIRTUAL_HOST: https-and-http.nginx-proxy.test
  36. https-only:
  37. image: web
  38. expose:
  39. - "82"
  40. environment:
  41. WEB_PORTS: "82"
  42. VIRTUAL_HOST: https-only.nginx-proxy.test
  43. HTTPS_METHOD: nohttp
  44. http-only:
  45. image: web
  46. expose:
  47. - "83"
  48. environment:
  49. WEB_PORTS: "83"
  50. VIRTUAL_HOST: http-only.nginx-proxy.test
  51. HTTPS_METHOD: nohttps
  52. missing-cert:
  53. image: web
  54. expose:
  55. - "84"
  56. environment:
  57. WEB_PORTS: "84"
  58. VIRTUAL_HOST: missing-cert.nginx-proxy.test
  59. missing-cert-default-untrusted:
  60. image: web
  61. expose:
  62. - "85"
  63. environment:
  64. WEB_PORTS: "85"
  65. VIRTUAL_HOST: missing-cert.default-untrusted.nginx-proxy.test
  66. labels:
  67. com.github.nginx-proxy.nginx-proxy.trust-default-cert: "false"