test_dhparam.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. web5:
  2. image: web
  3. expose:
  4. - "85"
  5. environment:
  6. WEB_PORTS: "85"
  7. VIRTUAL_HOST: "web5.nginx-proxy.tld"
  8. # sut - System Under Test
  9. # `docker.sock` required for functionality
  10. # `certs` required to enable HTTPS via template
  11. with_default_group:
  12. container_name: dh-default
  13. image: &img-nginxproxy nginxproxy/nginx-proxy:test
  14. volumes: &vols-common
  15. - &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
  16. - &nginx-certs ./certs:/etc/nginx/certs:ro
  17. with_alternative_group:
  18. container_name: dh-env
  19. environment:
  20. - DHPARAM_BITS=2048
  21. image: *img-nginxproxy
  22. volumes: *vols-common
  23. with_invalid_group:
  24. container_name: invalid-group-1024
  25. environment:
  26. - DHPARAM_BITS=1024
  27. image: *img-nginxproxy
  28. volumes: *vols-common
  29. with_custom_file:
  30. container_name: dh-file
  31. image: *img-nginxproxy
  32. volumes:
  33. - *docker-sock
  34. - *nginx-certs
  35. - ../../dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
  36. with_skip:
  37. container_name: dh-skip
  38. environment:
  39. - DHPARAM_SKIP=true
  40. image: *img-nginxproxy
  41. volumes: *vols-common
  42. with_skip_backward:
  43. container_name: dh-skip-backward
  44. environment:
  45. - DHPARAM_GENERATION=false
  46. image: *img-nginxproxy
  47. volumes: *vols-common