test_raw-ip-vhost.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. networks:
  2. net1:
  3. enable_ipv6: true
  4. ipam:
  5. config:
  6. - subnet: 172.20.0.0/16
  7. - subnet: fd00::/80
  8. volumes:
  9. nginx_conf:
  10. services:
  11. web1:
  12. container_name: web1
  13. image: web
  14. expose:
  15. - "81"
  16. environment:
  17. WEB_PORTS: 81
  18. VIRTUAL_HOST: "172.20.0.4"
  19. networks:
  20. net1:
  21. ipv4_address: 172.20.0.2
  22. ipv6_address: fd00::2
  23. web2:
  24. container_name: web2
  25. image: web
  26. expose:
  27. - "82"
  28. environment:
  29. WEB_PORTS: 82
  30. VIRTUAL_HOST: "[fd00::4]"
  31. networks:
  32. net1:
  33. ipv4_address: 172.20.0.3
  34. ipv6_address: fd00::3
  35. sut:
  36. profiles:
  37. - singleContainer
  38. image: nginxproxy/nginx-proxy:test
  39. volumes:
  40. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  41. environment: &nginxProxyEnvironment
  42. ENABLE_IPV6: "true"
  43. networks: &nginxProxyNetworks
  44. net1:
  45. ipv4_address: 172.20.0.4
  46. ipv6_address: fd00::4
  47. sut-dockergen:
  48. profiles:
  49. - separateContainers
  50. image: nginxproxy/nginx-proxy:test-dockergen
  51. volumes:
  52. - &confVolume nginx_conf:/etc/nginx/conf.d
  53. - *dockerSocket
  54. environment: *nginxProxyEnvironment
  55. networks:
  56. net1:
  57. ipv4_address: 172.20.0.5
  58. ipv6_address: fd00::5
  59. sut-nginx:
  60. profiles:
  61. - separateContainers
  62. container_name: nginx-proxy
  63. image: nginx:alpine
  64. volumes:
  65. - *confVolume
  66. networks: *nginxProxyNetworks
  67. labels:
  68. - "com.github.nginx-proxy.nginx-proxy.nginx"