docker-compose.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. - ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
  15. working_dir: /overleaf/services/real-time
  16. environment:
  17. MOCHA_GREP: ${MOCHA_GREP}
  18. LOG_LEVEL: ${LOG_LEVEL:-}
  19. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  20. NODE_ENV: test
  21. NODE_OPTIONS: "--unhandled-rejections=strict"
  22. REDIS_HOST: redis_test
  23. HISTORY_REDIS_HOST: redis_test
  24. QUEUES_REDIS_HOST: redis_test
  25. ANALYTICS_QUEUES_REDIS_HOST: redis_test
  26. ANALYTICS_QUEUES_BQ_SINK_REDIS_HOST: redis_test
  27. command: corepack yarn run --silent test:unit
  28. user: node
  29. depends_on:
  30. redis_test:
  31. condition: service_healthy
  32. test_acceptance:
  33. image: node:24.14.1
  34. volumes:
  35. - .:/overleaf/services/real-time
  36. - ../../node_modules:/overleaf/node_modules
  37. - ../../libraries:/overleaf/libraries
  38. - ../../package.json:/overleaf/package.json
  39. - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
  40. - ../../yarn.lock:/overleaf/yarn.lock
  41. working_dir: /overleaf/services/real-time
  42. environment:
  43. RETRIES:
  44. REDIS_HOST: redis_test
  45. HISTORY_REDIS_HOST: redis_test
  46. QUEUES_REDIS_HOST: redis_test
  47. ANALYTICS_QUEUES_REDIS_HOST: redis_test
  48. ANALYTICS_QUEUES_BQ_SINK_REDIS_HOST: redis_test
  49. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  50. POSTGRES_HOST: postgres
  51. MOCHA_GREP: ${MOCHA_GREP}
  52. LOG_LEVEL: ${LOG_LEVEL:-}
  53. NODE_ENV: test
  54. NODE_OPTIONS: "--unhandled-rejections=strict"
  55. user: node
  56. depends_on:
  57. redis_test:
  58. condition: service_healthy
  59. command: corepack yarn run --silent test:acceptance
  60. redis_test:
  61. image: redis:7.4.8
  62. healthcheck:
  63. test: ping=$$(redis-cli ping) && [ "$$ping" = 'PONG' ]
  64. interval: 1s
  65. retries: 20