docker-compose.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/notifications
  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. - ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
  16. - ../../tools/migrations:/overleaf/tools/migrations
  17. - ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
  18. working_dir: /overleaf/services/notifications
  19. environment:
  20. MOCHA_GREP: ${MOCHA_GREP}
  21. LOG_LEVEL: ${LOG_LEVEL:-}
  22. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  23. NODE_ENV: test
  24. NODE_OPTIONS: "--unhandled-rejections=strict"
  25. entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
  26. command: corepack yarn run --silent test:unit
  27. user: node
  28. depends_on:
  29. mongo:
  30. condition: service_started
  31. test_acceptance:
  32. image: node:24.14.1
  33. volumes:
  34. - .:/overleaf/services/notifications
  35. - ../../node_modules:/overleaf/node_modules
  36. - ../../libraries:/overleaf/libraries
  37. - ../../package.json:/overleaf/package.json
  38. - ../../.yarnrc.yml:/overleaf/.yarnrc.yml
  39. - ../../yarn.lock:/overleaf/yarn.lock
  40. - ../../.yarn:/overleaf/.yarn
  41. - ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
  42. - ../../tools/migrations:/overleaf/tools/migrations
  43. - ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
  44. working_dir: /overleaf/services/notifications
  45. environment:
  46. RETRIES:
  47. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  48. POSTGRES_HOST: postgres
  49. MOCHA_GREP: ${MOCHA_GREP}
  50. LOG_LEVEL: ${LOG_LEVEL:-}
  51. NODE_ENV: test
  52. NODE_OPTIONS: "--unhandled-rejections=strict"
  53. user: node
  54. depends_on:
  55. mongo:
  56. condition: service_started
  57. entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
  58. command: corepack yarn run --silent test:acceptance
  59. mongo:
  60. image: mongo:8.0.11
  61. command: --replSet overleaf --notablescan
  62. volumes:
  63. - ../../bin/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
  64. - ../../bin/shared/mongodb-docker-entrypoint-wait.sh:/mongodb-docker-entrypoint-wait.sh
  65. entrypoint: /mongodb-docker-entrypoint-wait.sh
  66. environment:
  67. MONGO_INITDB_DATABASE: sharelatex
  68. extra_hosts:
  69. # Required when using the automatic database setup for initializing the
  70. # replica set. This override is not needed when running the setup after
  71. # starting up mongo.
  72. - mongo:127.0.0.1