test_location-override.yml 1.1 KB

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