nginx-proxy-auto-docker/test/test_www_redirect.yml
2021-04-03 08:41:48 +02:00

27 lines
No EOL
597 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
- ./lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro
- ./test_ssl/certs:/etc/nginx/certs:ro