test_vhost-in-multiple-networks.yml 373 B

123456789101112131415161718192021222324
  1. networks:
  2. net1:
  3. net2:
  4. net3:
  5. services:
  6. nginx-proxy:
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - /var/run/docker.sock:/tmp/docker.sock:ro
  10. networks:
  11. - net1
  12. web:
  13. image: web
  14. expose:
  15. - "81"
  16. environment:
  17. WEB_PORTS: "81"
  18. VIRTUAL_HOST: web1.nginx-proxy.example
  19. networks:
  20. - net1
  21. - net2
  22. - net3