test_nominal.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. networks:
  35. - net1
  36. sut-dockergen:
  37. profiles:
  38. - separateContainers
  39. image: nginxproxy/nginx-proxy:test-dockergen
  40. volumes:
  41. - &confVolume nginx_conf:/etc/nginx/conf.d
  42. - *dockerSocket
  43. networks:
  44. - net1
  45. sut-nginx:
  46. profiles:
  47. - separateContainers
  48. container_name: nginx-proxy
  49. image: nginx:alpine
  50. volumes:
  51. - *confVolume
  52. networks:
  53. - net1
  54. labels:
  55. - "com.github.nginx-proxy.nginx-proxy.nginx"