docker-compose.local.mount.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Local 热加载挂载配置
  2. # 使用方式:
  3. # docker compose -f docker-compose.local.yml -f docker-compose.local.mount.yml up -d
  4. services:
  5. app:
  6. build:
  7. context: .
  8. target: app-runtime-local-hot
  9. volumes:
  10. - .:/app
  11. - /app/vendor
  12. - /app/node_modules
  13. - /app/public/build
  14. - ./storage:/app/storage
  15. - ./.env:/app/.env
  16. queue:
  17. build:
  18. context: .
  19. target: worker-local-hot
  20. volumes:
  21. - .:/app
  22. - /app/vendor
  23. - /app/node_modules
  24. - /app/public/build
  25. - ./storage:/app/storage
  26. - ./.env:/app/.env
  27. pdf-worker:
  28. build:
  29. context: .
  30. target: worker-local-hot
  31. volumes:
  32. - .:/app
  33. - /app/vendor
  34. - /app/node_modules
  35. - /app/public/build
  36. - ./storage:/app/storage
  37. - ./.env:/app/.env
  38. logic-worker:
  39. build:
  40. context: .
  41. target: worker-local-hot
  42. volumes:
  43. - .:/app
  44. - /app/vendor
  45. - /app/node_modules
  46. - /app/public/build
  47. - ./storage:/app/storage
  48. - ./.env:/app/.env