test_vhost-empty-string.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. volumes:
  2. nginx_conf:
  3. services:
  4. sut:
  5. profiles:
  6. - singleContainer
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  10. sut-dockergen:
  11. profiles:
  12. - separateContainers
  13. image: nginxproxy/nginx-proxy:test-dockergen
  14. volumes:
  15. - &confVolume nginx_conf:/etc/nginx/conf.d
  16. - *dockerSocket
  17. sut-nginx:
  18. profiles:
  19. - separateContainers
  20. container_name: nginx-proxy
  21. image: nginx:alpine
  22. volumes:
  23. - *confVolume
  24. labels:
  25. - "com.github.nginx-proxy.nginx-proxy.nginx"
  26. web1:
  27. image: web
  28. expose:
  29. - "81"
  30. environment:
  31. WEB_PORTS: "81"
  32. # The space is intentional (should be trimmed).
  33. VIRTUAL_HOST: " "
  34. web2:
  35. image: web
  36. expose:
  37. - "82"
  38. environment:
  39. WEB_PORTS: "82"
  40. # The space is intentional (should be trimmed).
  41. VIRTUAL_HOST: "web2.nginx-proxy.test ,"
  42. web3:
  43. image: web
  44. expose:
  45. - "83"
  46. environment:
  47. WEB_PORTS: "83"
  48. # The space is intentional (should be trimmed).
  49. VIRTUAL_HOST: " ,web3.nginx-proxy.test"
  50. web4:
  51. image: web
  52. expose:
  53. - "84"
  54. environment:
  55. WEB_PORTS: "84"
  56. # The spaces are intentional (should be trimmed).
  57. VIRTUAL_HOST: "web4a.nginx-proxy.test, , web4b.nginx-proxy.test"