docker-compose.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.19.0
  8. volumes:
  9. - .:/app
  10. working_dir: /app
  11. environment:
  12. MOCHA_GREP: ${MOCHA_GREP}
  13. NODE_ENV: test
  14. command: npm run test:unit
  15. user: node
  16. test_acceptance:
  17. image: node:10.19.0
  18. volumes:
  19. - .:/app
  20. working_dir: /app
  21. environment:
  22. ELASTIC_SEARCH_DSN: es:9200
  23. REDIS_HOST: redis
  24. NEW_HISTORY_REDIS_HOST: new_redis
  25. MONGO_HOST: mongo
  26. POSTGRES_HOST: postgres
  27. MOCHA_GREP: ${MOCHA_GREP}
  28. LOG_LEVEL: ERROR
  29. NODE_ENV: test
  30. user: node
  31. depends_on:
  32. mongo:
  33. condition: service_healthy
  34. redis:
  35. condition: service_healthy
  36. new_redis:
  37. condition: service_healthy
  38. command: npm run test:acceptance
  39. redis:
  40. image: redis
  41. new_redis:
  42. image: redis
  43. mongo:
  44. image: mongo:3.6