2
0

test_global.yml 1.7 KB

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