docker-compose.yml 1005 B

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