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