test_https_port.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: "*.nginx-proxy.tld"
  11. sut:
  12. profiles:
  13. - singleContainer
  14. image: nginxproxy/nginx-proxy:test
  15. ports:
  16. - "8080:8080"
  17. - "8443:8443"
  18. volumes:
  19. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  20. - &certs ./certs:/etc/nginx/certs:ro
  21. - &acmeRoot ./acme_root:/usr/share/nginx/html:ro
  22. environment: &nginxProxyEnv
  23. HTTP_PORT: 8080
  24. HTTPS_PORT: 8443
  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. - *certs
  33. - *acmeRoot
  34. environment: *nginxProxyEnv
  35. sut-nginx:
  36. profiles:
  37. - separateContainers
  38. container_name: nginx-proxy
  39. image: nginx:alpine
  40. ports:
  41. - "8080:8080"
  42. - "8443:8443"
  43. volumes:
  44. - *confVolume
  45. - *certs
  46. - *acmeRoot
  47. labels:
  48. - "com.github.nginx-proxy.nginx-proxy.nginx"