docker-compose.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. build:
  8. context: ../..
  9. dockerfile: services/spelling/Dockerfile
  10. target: base
  11. volumes:
  12. - .:/overleaf/services/spelling
  13. - ../../node_modules:/overleaf/node_modules
  14. - ../../libraries:/overleaf/libraries
  15. working_dir: /overleaf/services/spelling
  16. environment:
  17. MOCHA_GREP: ${MOCHA_GREP}
  18. NODE_ENV: test
  19. NODE_OPTIONS: "--unhandled-rejections=strict"
  20. command: npm run --silent test:unit
  21. user: node
  22. test_acceptance:
  23. build:
  24. context: ../..
  25. dockerfile: services/spelling/Dockerfile
  26. target: base
  27. volumes:
  28. - .:/overleaf/services/spelling
  29. - ../../node_modules:/overleaf/node_modules
  30. - ../../libraries:/overleaf/libraries
  31. working_dir: /overleaf/services/spelling
  32. environment:
  33. ELASTIC_SEARCH_DSN: es:9200
  34. MONGO_HOST: mongo
  35. POSTGRES_HOST: postgres
  36. MOCHA_GREP: ${MOCHA_GREP}
  37. LOG_LEVEL: ERROR
  38. NODE_ENV: test
  39. NODE_OPTIONS: "--unhandled-rejections=strict"
  40. user: node
  41. command: npm run --silent test:acceptance