nginx-proxy-auto-docker/test/test_www_redirect.yml
Robin Windey 926b56766d
Fix tests after merge with upstream
* Don't mount dh params as read only because that lets container fail in startup
* Use pytest.sh from upstream to ensure correct container name
* Remove renamed dh param test
* Fix www redirect in case of wildcard host
2022-02-20 15:03:17 +01:00

26 lines
No EOL
535 B
YAML

# Webapp without https redirect (just serving http)
http:
image: web
expose:
- "81"
environment:
WEB_PORTS: 81
VIRTUAL_HOST: web.nginx-proxy.tld,www.web.nginx-proxy.tld
HTTPS_METHOD: nohttps
# Webapp with https redirect
https:
image: web
expose:
- "82"
environment:
WEB_PORTS: 82
VIRTUAL_HOST: web2.nginx-proxy.tld,www.web2.nginx-proxy.tld
# Proxy
sut:
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./test_ssl/certs:/etc/nginx/certs:ro