test_wildcard-cert-nohttps.yml 935 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # In this scenario, we have a wildcard certificate for `*.web.nginx-proxy.tld` and 3 web containers:
  2. # - 1.web.nginx-proxy.tld
  3. # - 2.web.nginx-proxy.tld
  4. # - 3.web.nginx-proxy.tld
  5. #
  6. # We want web containers 1 and 2 to support SSL, but 3 should not (using `HTTPS_METHOD=nohttps`)
  7. services:
  8. nginx-proxy:
  9. volumes:
  10. - /var/run/docker.sock:/tmp/docker.sock:ro
  11. - ${PYTEST_MODULE_PATH}/certs_wildcard_nohttps:/etc/nginx/certs:ro
  12. - ${PYTEST_MODULE_PATH}/acme_root:/usr/share/nginx/html:ro
  13. web1:
  14. image: web
  15. expose:
  16. - "81"
  17. environment:
  18. WEB_PORTS: "81"
  19. VIRTUAL_HOST: "1.web.nginx-proxy.tld"
  20. web2:
  21. image: web
  22. expose:
  23. - "82"
  24. environment:
  25. WEB_PORTS: "82"
  26. VIRTUAL_HOST: "2.web.nginx-proxy.tld"
  27. web3_nohttps:
  28. image: web
  29. expose:
  30. - "83"
  31. environment:
  32. WEB_PORTS: "83"
  33. VIRTUAL_HOST: "3.web.nginx-proxy.tld"
  34. HTTPS_METHOD: nohttps