docker-compose.yml 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/sharelatex/sharelatex-dev-environment
  4. version: "2.3"
  5. services:
  6. test_unit:
  7. image: node:10.21.0
  8. volumes:
  9. - .:/app
  10. working_dir: /app
  11. environment:
  12. MOCHA_GREP: ${MOCHA_GREP}
  13. NODE_ENV: test
  14. NODE_OPTIONS: "--unhandled-rejections=strict"
  15. command: npm run --silent test:unit
  16. user: node
  17. test_acceptance:
  18. image: node:10.21.0
  19. volumes:
  20. - .:/app
  21. working_dir: /app
  22. environment:
  23. ELASTIC_SEARCH_DSN: es:9200
  24. REDIS_HOST: redis
  25. MONGO_HOST: mongo
  26. POSTGRES_HOST: postgres
  27. MOCHA_GREP: ${MOCHA_GREP}
  28. LOG_LEVEL: ERROR
  29. NODE_ENV: test
  30. NODE_OPTIONS: "--unhandled-rejections=strict"
  31. user: node
  32. depends_on:
  33. mongo:
  34. condition: service_healthy
  35. command: npm run --silent test:acceptance
  36. mongo:
  37. image: mongo:4.0