test_global.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. volumes:
  2. nginx_conf:
  3. services:
  4. nginx-proxy:
  5. profiles:
  6. - singleContainer
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  10. environment: &nginxProxyEnv
  11. DEBUG_ENDPOINT: "true"
  12. nginx-proxy-dockergen:
  13. profiles:
  14. - separateContainers
  15. image: nginxproxy/nginx-proxy:test-dockergen
  16. volumes:
  17. - &confVolume nginx_conf:/etc/nginx/conf.d
  18. - *dockerSocket
  19. environment:
  20. <<: *nginxProxyEnv
  21. nginx-proxy-nginx:
  22. profiles:
  23. - separateContainers
  24. container_name: nginx-proxy
  25. image: nginx:alpine
  26. volumes:
  27. - *confVolume
  28. labels:
  29. - "com.github.nginx-proxy.nginx-proxy.nginx"
  30. debug_enabled:
  31. image: web
  32. expose:
  33. - "81"
  34. environment:
  35. WEB_PORTS: 81
  36. VIRTUAL_HOST: enabled.debug.nginx-proxy.example
  37. debug_stripped:
  38. image: web
  39. expose:
  40. - "82"
  41. environment:
  42. WEB_PORTS: 82
  43. VIRTUAL_HOST_MULTIPORTS: |-
  44. stripped.debug.nginx-proxy.example:
  45. "/1":
  46. "/2":
  47. "/3":
  48. "/4":
  49. "/5":
  50. "/6":
  51. "/7":
  52. "/8":
  53. "/9":
  54. "/10":
  55. "/11":
  56. "/12":
  57. "/13":
  58. "/14":
  59. "/15":
  60. "/16":
  61. "/17":
  62. "/18":
  63. "/19":
  64. "/20":
  65. debug_regexp:
  66. image: web
  67. expose:
  68. - "84"
  69. environment:
  70. WEB_PORTS: 84
  71. VIRTUAL_HOST: ~^regexp.*\.debug.nginx-proxy.example
  72. debug_disabled:
  73. image: web
  74. expose:
  75. - "83"
  76. environment:
  77. WEB_PORTS: 83
  78. VIRTUAL_HOST: disabled.debug.nginx-proxy.example
  79. labels:
  80. com.github.nginx-proxy.nginx-proxy.debug-endpoint: "false"