test_DOCKER_HOST_unix_socket.yml 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:
  34. <<: *nginxProxyEnv
  35. sutnginx:
  36. profiles:
  37. - separateContainers
  38. container_name: nginx-proxy
  39. image: nginx:alpine
  40. volumes:
  41. - *confVolume
  42. labels:
  43. - "com.github.nginx-proxy.nginx-proxy.nginx"