test_dhparam.yml 1.7 KB

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