test_DOCKER_HOST_unix_socket.yml 369 B

123456789101112131415161718192021222324
  1. web1:
  2. image: web
  3. expose:
  4. - "81"
  5. environment:
  6. WEB_PORTS: 81
  7. VIRTUAL_HOST: web1.nginx-proxy.tld
  8. web2:
  9. image: web
  10. expose:
  11. - "82"
  12. environment:
  13. WEB_PORTS: 82
  14. VIRTUAL_HOST: web2.nginx-proxy.tld
  15. sut:
  16. image: jwilder/nginx-proxy:test
  17. volumes:
  18. - /var/run/docker.sock:/f00.sock:ro
  19. environment:
  20. DOCKER_HOST: unix:///f00.sock