test_dhparam.yml 1.8 KB

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