docker-compose.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. version: "2.3"
  5. services:
  6. test_unit:
  7. image: node:20.18.2
  8. volumes:
  9. - .:/overleaf/services/notifications
  10. - ../../node_modules:/overleaf/node_modules
  11. - ../../libraries:/overleaf/libraries
  12. working_dir: /overleaf/services/notifications
  13. environment:
  14. MOCHA_GREP: ${MOCHA_GREP}
  15. LOG_LEVEL: ${LOG_LEVEL:-}
  16. NODE_ENV: test
  17. NODE_OPTIONS: "--unhandled-rejections=strict"
  18. command: npm run --silent test:unit
  19. user: node
  20. test_acceptance:
  21. image: node:20.18.2
  22. volumes:
  23. - .:/overleaf/services/notifications
  24. - ../../node_modules:/overleaf/node_modules
  25. - ../../libraries:/overleaf/libraries
  26. working_dir: /overleaf/services/notifications
  27. environment:
  28. ELASTIC_SEARCH_DSN: es:9200
  29. MONGO_HOST: mongo
  30. POSTGRES_HOST: postgres
  31. MOCHA_GREP: ${MOCHA_GREP}
  32. LOG_LEVEL: ${LOG_LEVEL:-}
  33. NODE_ENV: test
  34. NODE_OPTIONS: "--unhandled-rejections=strict"
  35. user: node
  36. depends_on:
  37. mongo:
  38. condition: service_started
  39. command: npm run --silent test:acceptance
  40. mongo:
  41. image: mongo:6.0.13
  42. command: --replSet overleaf
  43. volumes:
  44. - ../../bin/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
  45. environment:
  46. MONGO_INITDB_DATABASE: sharelatex
  47. extra_hosts:
  48. # Required when using the automatic database setup for initializing the
  49. # replica set. This override is not needed when running the setup after
  50. # starting up mongo.
  51. - mongo:127.0.0.1