docker-compose.yml 2.3 KB

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