test_defaults-location.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. volumes:
  2. nginx_conf:
  3. services:
  4. nginx-proxy:
  5. profiles:
  6. - singleContainer
  7. image: nginxproxy/nginx-proxy:test
  8. volumes:
  9. - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
  10. - &defaultLocation ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/default_location:ro
  11. - &vhostLocation ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
  12. nginx-proxy-dockergen:
  13. profiles:
  14. - separateContainers
  15. image: nginxproxy/nginx-proxy:test-dockergen
  16. volumes:
  17. - &confVolume nginx_conf:/etc/nginx/conf.d
  18. - *dockerSocket
  19. - *defaultLocation
  20. - *vhostLocation
  21. nginx-proxy-nginx:
  22. profiles:
  23. - separateContainers
  24. container_name: nginx-proxy
  25. image: nginx:alpine
  26. volumes:
  27. - *confVolume
  28. - *defaultLocation
  29. - *vhostLocation
  30. labels:
  31. - "com.github.nginx-proxy.nginx-proxy.nginx"
  32. web1:
  33. image: web
  34. expose:
  35. - "81"
  36. environment:
  37. WEB_PORTS: 81
  38. VIRTUAL_HOST: web1.nginx-proxy.example
  39. web2:
  40. image: web
  41. expose:
  42. - "82"
  43. environment:
  44. WEB_PORTS: 82
  45. VIRTUAL_HOST: web2.nginx-proxy.example
  46. web3:
  47. image: web
  48. expose:
  49. - "83"
  50. environment:
  51. WEB_PORTS: 83
  52. VIRTUAL_HOST: web3.nginx-proxy.example