docker-compose.yml 929 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: 1.3.1
  5. version: "2.1"
  6. services:
  7. test_unit:
  8. image: node:10.16.3
  9. volumes:
  10. - .:/app
  11. working_dir: /app
  12. environment:
  13. MOCHA_GREP: ${MOCHA_GREP}
  14. NODE_ENV: test
  15. command: npm run test:unit
  16. user: node
  17. test_acceptance:
  18. image: node:10.16.3
  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. user: node
  31. depends_on:
  32. mongo:
  33. condition: service_healthy
  34. redis:
  35. condition: service_healthy
  36. command: npm run test:acceptance
  37. redis:
  38. image: redis
  39. mongo:
  40. image: mongo:3.6