test_cert_selection.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. volumes:
  2. nginx_conf:
  3. services:
  4. base:
  5. image: web
  6. environment:
  7. WEB_PORTS: "80"
  8. VIRTUAL_HOST: "nginx-proxy.tld"
  9. www:
  10. image: web
  11. environment:
  12. WEB_PORTS: "80"
  13. VIRTUAL_HOST: "www.nginx-proxy.tld"
  14. sub-www:
  15. image: web
  16. environment:
  17. WEB_PORTS: "80"
  18. VIRTUAL_HOST: "subdomain.www.nginx-proxy.tld"
  19. web1:
  20. image: web
  21. environment:
  22. WEB_PORTS: "80"
  23. VIRTUAL_HOST: "web1.nginx-proxy.tld"
  24. sut:
  25. profiles:
  26. - singleContainer
  27. image: nginxproxy/nginx-proxy:test
  28. volumes:
  29. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  30. - &certs ./cert_selection:/etc/nginx/certs:ro
  31. - &acmeRoot ./acme_root:/usr/share/nginx/html:ro
  32. environment: &nginxProxyEnv
  33. DEBUG_ENDPOINT: "true"
  34. sut-dockergen:
  35. profiles:
  36. - separateContainers
  37. image: nginxproxy/nginx-proxy:test-dockergen
  38. volumes:
  39. - &confVolume nginx_conf:/etc/nginx/conf.d
  40. - *dockerSocket
  41. - *certs
  42. - *acmeRoot
  43. environment: *nginxProxyEnv
  44. sut-nginx:
  45. profiles:
  46. - separateContainers
  47. container_name: nginx-proxy
  48. image: nginx:alpine
  49. volumes:
  50. - *confVolume
  51. - *certs
  52. - *acmeRoot
  53. labels:
  54. - "com.github.nginx-proxy.nginx-proxy.nginx"