test_raw-ip-vhost.yml 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "2"
  2. networks:
  3. net1:
  4. enable_ipv6: true
  5. ipam:
  6. config:
  7. - subnet: 172.20.0.0/16
  8. - subnet: fd00::/80
  9. services:
  10. web1:
  11. container_name: web1
  12. image: web
  13. expose:
  14. - "81"
  15. environment:
  16. WEB_PORTS: 81
  17. VIRTUAL_HOST: "172.20.0.4"
  18. networks:
  19. net1:
  20. ipv4_address: 172.20.0.2
  21. ipv6_address: fd00::2
  22. web2:
  23. container_name: web2
  24. image: web
  25. expose:
  26. - "82"
  27. environment:
  28. WEB_PORTS: 82
  29. VIRTUAL_HOST: "[fd00::4]"
  30. networks:
  31. net1:
  32. ipv4_address: 172.20.0.3
  33. ipv6_address: fd00::3
  34. sut:
  35. image: nginxproxy/nginx-proxy:test
  36. environment:
  37. ENABLE_IPV6: "true"
  38. volumes:
  39. - /var/run/docker.sock:/tmp/docker.sock:ro
  40. networks:
  41. net1:
  42. ipv4_address: 172.20.0.4
  43. ipv6_address: fd00::4