2
0

test_location-override.yml 1.2 KB

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