docker-compose.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/contacts
  9. - ../../node_modules:/overleaf/node_modules
  10. - ../../libraries:/overleaf/libraries
  11. - ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
  12. working_dir: /overleaf/services/contacts
  13. environment:
  14. MOCHA_GREP: ${MOCHA_GREP}
  15. LOG_LEVEL: ${LOG_LEVEL:-}
  16. MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
  17. NODE_ENV: test
  18. NODE_OPTIONS: "--unhandled-rejections=strict"
  19. entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
  20. command: npm run --silent test:unit
  21. user: node
  22. depends_on:
  23. mongo:
  24. condition: service_started
  25. test_acceptance:
  26. image: node:22.18.0
  27. volumes:
  28. - .:/overleaf/services/contacts
  29. - ../../node_modules:/overleaf/node_modules
  30. - ../../libraries:/overleaf/libraries
  31. - ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
  32. - ../../tools/migrations:/overleaf/tools/migrations
  33. working_dir: /overleaf/services/contacts
  34. environment:
  35. ELASTIC_SEARCH_DSN: es:9200
  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
  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