test_http.yml 907 B

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