test_ipv6.yml 1.2 KB

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