docker-compose.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/overleaf/internal/
  4. services:
  5. test_unit:
  6. image: node:24.14.1
  7. volumes:
  8. - .:/overleaf/services/real-time
  9. - ../../node_modules:/overleaf/node_modules
  10. - ../../libraries:/overleaf/libraries
  11. - ../../package.json:/overleaf/package.json
  12. - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
  13. - ../../yarn.lock:/overleaf/yarn.lock
  14. - ../../.yarn:/overleaf/.yarn
  15. - ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
  16. working_dir: /overleaf/services/real-time
  17. environment:
  18. MOCHA_GREP: ${MOCHA_GREP}
  19. LOG_LEVEL: ${LOG_LEVEL:-}
  20. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  21. NODE_ENV: test
  22. NODE_OPTIONS: "--unhandled-rejections=strict"
  23. REDIS_HOST: redis_test
  24. HISTORY_REDIS_HOST: redis_test
  25. QUEUES_REDIS_HOST: redis_test
  26. ANALYTICS_QUEUES_REDIS_HOST: redis_test
  27. ANALYTICS_QUEUES_BQ_SINK_REDIS_HOST: redis_test
  28. command: corepack yarn run --silent test:unit
  29. user: node
  30. depends_on:
  31. redis_test:
  32. condition: service_healthy
  33. test_acceptance:
  34. image: node:24.14.1
  35. volumes:
  36. - .:/overleaf/services/real-time
  37. - ../../node_modules:/overleaf/node_modules
  38. - ../../libraries:/overleaf/libraries
  39. - ../../package.json:/overleaf/package.json
  40. - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
  41. - ../../yarn.lock:/overleaf/yarn.lock
  42. - ../../.yarn:/overleaf/.yarn
  43. working_dir: /overleaf/services/real-time
  44. environment:
  45. RETRIES:
  46. REDIS_HOST: redis_test
  47. HISTORY_REDIS_HOST: redis_test
  48. QUEUES_REDIS_HOST: redis_test
  49. ANALYTICS_QUEUES_REDIS_HOST: redis_test
  50. ANALYTICS_QUEUES_BQ_SINK_REDIS_HOST: redis_test
  51. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  52. POSTGRES_HOST: postgres
  53. MOCHA_GREP: ${MOCHA_GREP}
  54. LOG_LEVEL: ${LOG_LEVEL:-}
  55. NODE_ENV: test
  56. NODE_OPTIONS: "--unhandled-rejections=strict"
  57. user: node
  58. depends_on:
  59. redis_test:
  60. condition: service_healthy
  61. command: corepack yarn run --silent test:acceptance
  62. redis_test:
  63. image: redis:7.4.8
  64. healthcheck:
  65. test: ping=$$(redis-cli ping) && [ "$$ping" = 'PONG' ]
  66. interval: 1s
  67. retries: 20