test_docker_unix_socket.yml 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. volumes:
  2. nginx_conf:
  3. services:
  4. web1:
  5. image: web
  6. expose:
  7. - "81"
  8. environment:
  9. WEB_PORTS: 81
  10. VIRTUAL_HOST: web1.nginx-proxy.tld
  11. web2:
  12. image: web
  13. expose:
  14. - "82"
  15. environment:
  16. WEB_PORTS: 82
  17. VIRTUAL_HOST: web2.nginx-proxy.tld
  18. sut:
  19. profiles:
  20. - singleContainer
  21. image: nginxproxy/nginx-proxy:test
  22. volumes:
  23. - &dockerSocket /var/run/docker.sock:/f00.sock:ro
  24. environment: &nginxProxyEnv
  25. DOCKER_HOST: unix:///f00.sock
  26. sutdockergen:
  27. profiles:
  28. - separateContainers
  29. image: nginxproxy/nginx-proxy:test-dockergen
  30. volumes:
  31. - &confVolume nginx_conf:/etc/nginx/conf.d
  32. - *dockerSocket
  33. environment: *nginxProxyEnv
  34. sutnginx:
  35. profiles:
  36. - separateContainers
  37. container_name: nginx-proxy
  38. image: nginx:alpine
  39. volumes:
  40. - *confVolume
  41. labels:
  42. - "com.github.nginx-proxy.nginx-proxy.nginx"