test_dhparam.base.yml 1.9 KB

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