test_dhparam.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. version: "2"
  2. services:
  3. web5:
  4. image: web
  5. expose:
  6. - "85"
  7. environment:
  8. WEB_PORTS: "85"
  9. VIRTUAL_HOST: "web5.nginx-proxy.tld"
  10. # Intended for testing with `dh-file` container.
  11. # VIRTUAL_HOST is paired with site-specific DH param file.
  12. # DEFAULT_HOST is required to avoid defaulting to web2,
  13. # if not specifying FQDN (`-servername`) in openssl queries.
  14. web2:
  15. image: web
  16. expose:
  17. - "85"
  18. environment:
  19. WEB_PORTS: "85"
  20. VIRTUAL_HOST: "web2.nginx-proxy.tld"
  21. # sut - System Under Test
  22. # `docker.sock` required for functionality
  23. # `certs` required to enable HTTPS via template
  24. with_default_group:
  25. container_name: dh-default
  26. image: &img-nginxproxy nginxproxy/nginx-proxy:test
  27. environment: &env-common
  28. - &default-host DEFAULT_HOST=web5.nginx-proxy.tld
  29. volumes: &vols-common
  30. - &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
  31. - &nginx-certs ./certs:/etc/nginx/certs:ro
  32. with_alternative_group:
  33. container_name: dh-env
  34. environment:
  35. - DHPARAM_BITS=3072
  36. - *default-host
  37. image: *img-nginxproxy
  38. volumes: *vols-common
  39. with_invalid_group:
  40. container_name: invalid-group-1024
  41. environment:
  42. - DHPARAM_BITS=1024
  43. - *default-host
  44. image: *img-nginxproxy
  45. volumes: *vols-common
  46. with_custom_file:
  47. container_name: dh-file
  48. image: *img-nginxproxy
  49. environment: *env-common
  50. volumes:
  51. - *docker-sock
  52. - *nginx-certs
  53. - ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
  54. with_skip:
  55. container_name: dh-skip
  56. environment:
  57. - DHPARAM_SKIP=true
  58. - *default-host
  59. image: *img-nginxproxy
  60. volumes: *vols-common
  61. with_skip_backward:
  62. container_name: dh-skip-backward
  63. environment:
  64. - DHPARAM_GENERATION=false
  65. - *default-host
  66. image: *img-nginxproxy
  67. volumes: *vols-common