2
0

nodefault.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. volumes:
  2. nginx_conf:
  3. services:
  4. sut:
  5. profiles:
  6. - singleContainer
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  10. - &certs ./nodefault.certs:/etc/nginx/certs:ro
  11. sut-dockergen:
  12. profiles:
  13. - separateContainers
  14. image: nginxproxy/nginx-proxy:test-dockergen
  15. volumes:
  16. - &confVolume nginx_conf:/etc/nginx/conf.d
  17. - *dockerSocket
  18. - *certs
  19. sut-nginx:
  20. profiles:
  21. - separateContainers
  22. container_name: nginx-proxy
  23. image: nginx:alpine
  24. volumes:
  25. - *confVolume
  26. - *certs
  27. labels:
  28. - "com.github.nginx-proxy.nginx-proxy.nginx"
  29. https-and-http:
  30. image: web
  31. expose:
  32. - "81"
  33. environment:
  34. WEB_PORTS: "81"
  35. VIRTUAL_HOST: https-and-http.nginx-proxy.test
  36. https-only:
  37. image: web
  38. expose:
  39. - "82"
  40. environment:
  41. WEB_PORTS: "82"
  42. VIRTUAL_HOST: https-only.nginx-proxy.test
  43. HTTPS_METHOD: nohttp
  44. http-only:
  45. image: web
  46. expose:
  47. - "83"
  48. environment:
  49. WEB_PORTS: "83"
  50. VIRTUAL_HOST: http-only.nginx-proxy.test
  51. HTTPS_METHOD: nohttps
  52. missing-cert:
  53. image: web
  54. expose:
  55. - "84"
  56. environment:
  57. WEB_PORTS: "84"
  58. VIRTUAL_HOST: missing-cert.nginx-proxy.test