test_location-override.yml 1.1 KB

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