test_virtual_paths.yml 696 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. foo:
  2. image: web
  3. expose:
  4. - "42"
  5. environment:
  6. WEB_PORTS: "42"
  7. VIRTUAL_HOST: "foo.nginx-proxy.test"
  8. web1:
  9. image: web
  10. expose:
  11. - "81"
  12. environment:
  13. WEB_PORTS: "81"
  14. VIRTUAL_HOST: "nginx-proxy.test"
  15. VIRTUAL_PATH: "/web1/"
  16. web2:
  17. image: web
  18. expose:
  19. - "82"
  20. environment:
  21. WEB_PORTS: "82"
  22. VIRTUAL_HOST: "nginx-proxy.test"
  23. VIRTUAL_PATH: "/web2/"
  24. web3:
  25. image: web
  26. expose:
  27. - "83"
  28. environment:
  29. WEB_PORTS: "83"
  30. VIRTUAL_HOST: "nginx-proxy.test"
  31. VIRTUAL_PATH: "/"
  32. sut:
  33. image: nginxproxy/nginx-proxy:test
  34. volumes:
  35. - /var/run/docker.sock:/tmp/docker.sock:ro
  36. - ../lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro