test_location-override.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. services:
  2. sut:
  3. image: nginxproxy/nginx-proxy:test
  4. volumes:
  5. - /var/run/docker.sock:/tmp/docker.sock:ro
  6. - ./test_location-override.vhost.d:/etc/nginx/vhost.d:ro
  7. environment:
  8. HTTPS_METHOD: nohttps
  9. explicit-root:
  10. image: web
  11. expose:
  12. - "81"
  13. environment:
  14. WEB_PORTS: "81"
  15. VIRTUAL_HOST: >-
  16. explicit-root-nohash.nginx-proxy.test,
  17. explicit-root-hash.nginx-proxy.test,
  18. explicit-root-hash-and-nohash.nginx-proxy.test,
  19. explicit-nonroot.nginx-proxy.test
  20. VIRTUAL_PATH: /
  21. explicit-foo:
  22. image: web
  23. expose:
  24. - "82"
  25. environment:
  26. WEB_PORTS: "82"
  27. VIRTUAL_HOST: >-
  28. explicit-root-nohash.nginx-proxy.test,
  29. explicit-root-hash.nginx-proxy.test,
  30. explicit-root-hash-and-nohash.nginx-proxy.test,
  31. explicit-nonroot.nginx-proxy.test
  32. VIRTUAL_PATH: /foo/
  33. VIRTUAL_DEST: /
  34. # Same as explicit-root except VIRTUAL_PATH is left unset.
  35. implicit-root:
  36. image: web
  37. expose:
  38. - "83"
  39. environment:
  40. WEB_PORTS: "83"
  41. VIRTUAL_HOST: >-
  42. implicit-root-nohash.nginx-proxy.test,
  43. implicit-root-hash.nginx-proxy.test,
  44. implicit-root-hash-and-nohash.nginx-proxy.test,