mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 09:48:14 +00:00
- Use a DRY method instead. - ENV test changed from 2048-bit to 3072-bit to avoid confusion in a future test that should not be mixed up accidentally with 2048-bit elsewhere. - Custom DH file test comparison changed to match other comparisons for equality against the expected DH param content. - Related comments revised, additional comment for context added by the test definition. - Minor white-space adjustments.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
web5:
|
|
image: web
|
|
expose:
|
|
- "85"
|
|
environment:
|
|
WEB_PORTS: "85"
|
|
VIRTUAL_HOST: "web5.nginx-proxy.tld"
|
|
|
|
# sut - System Under Test
|
|
# `docker.sock` required for functionality
|
|
# `certs` required to enable HTTPS via template
|
|
with_default_group:
|
|
container_name: dh-default
|
|
image: &img-nginxproxy nginxproxy/nginx-proxy:test
|
|
volumes: &vols-common
|
|
- &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- &nginx-certs ./certs:/etc/nginx/certs:ro
|
|
|
|
with_alternative_group:
|
|
container_name: dh-env
|
|
environment:
|
|
- DHPARAM_BITS=3072
|
|
image: *img-nginxproxy
|
|
volumes: *vols-common
|
|
|
|
with_invalid_group:
|
|
container_name: invalid-group-1024
|
|
environment:
|
|
- DHPARAM_BITS=1024
|
|
image: *img-nginxproxy
|
|
volumes: *vols-common
|
|
|
|
with_custom_file:
|
|
container_name: dh-file
|
|
image: *img-nginxproxy
|
|
volumes:
|
|
- *docker-sock
|
|
- *nginx-certs
|
|
- ../../dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
|
|
|
with_skip:
|
|
container_name: dh-skip
|
|
environment:
|
|
- DHPARAM_SKIP=true
|
|
image: *img-nginxproxy
|
|
volumes: *vols-common
|
|
|
|
with_skip_backward:
|
|
container_name: dh-skip-backward
|
|
environment:
|
|
- DHPARAM_GENERATION=false
|
|
image: *img-nginxproxy
|
|
volumes: *vols-common
|