test_global.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. services:
  2. nginx-proxy:
  3. image: nginxproxy/nginx-proxy:test
  4. volumes:
  5. - /var/run/docker.sock:/tmp/docker.sock:ro
  6. environment:
  7. DEBUG_ENDPOINT: "true"
  8. debug_enabled:
  9. image: web
  10. expose:
  11. - "81"
  12. environment:
  13. WEB_PORTS: "81"
  14. VIRTUAL_HOST: enabled.debug.nginx-proxy.example
  15. debug_stripped:
  16. image: web
  17. expose:
  18. - "82"
  19. environment:
  20. WEB_PORTS: "82"
  21. VIRTUAL_HOST_MULTIPORTS: |-
  22. stripped.debug.nginx-proxy.example:
  23. "/1":
  24. "/2":
  25. "/3":
  26. "/4":
  27. "/5":
  28. "/6":
  29. "/7":
  30. "/8":
  31. "/9":
  32. "/10":
  33. "/11":
  34. "/12":
  35. "/13":
  36. "/14":
  37. "/15":
  38. "/16":
  39. "/17":
  40. "/18":
  41. "/19":
  42. "/20":
  43. debug_regexp:
  44. image: web
  45. expose:
  46. - "84"
  47. environment:
  48. WEB_PORTS: "84"
  49. VIRTUAL_HOST: ~^regexp.*\.debug.nginx-proxy.example
  50. debug_disabled:
  51. image: web
  52. expose:
  53. - "83"
  54. environment:
  55. WEB_PORTS: "83"
  56. VIRTUAL_HOST: disabled.debug.nginx-proxy.example
  57. labels:
  58. com.github.nginx-proxy.nginx-proxy.debug-endpoint: "false"