docker-compose.ci.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.5
  5. version: "2.3"
  6. services:
  7. test_unit:
  8. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  9. user: node
  10. command: npm run test:unit:_run
  11. environment:
  12. NODE_ENV: test
  13. test_acceptance:
  14. build: .
  15. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  16. environment:
  17. ELASTIC_SEARCH_DSN: es:9200
  18. REDIS_HOST: redis
  19. NEW_HISTORY_REDIS_HOST: new_redis
  20. MONGO_HOST: mongo
  21. POSTGRES_HOST: postgres
  22. MOCHA_GREP: ${MOCHA_GREP}
  23. NODE_ENV: test
  24. depends_on:
  25. mongo:
  26. condition: service_healthy
  27. redis:
  28. condition: service_healthy
  29. new_redis:
  30. condition: service_healthy
  31. user: node
  32. command: npm run test:acceptance:_run
  33. tar:
  34. build: .
  35. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  36. volumes:
  37. - ./:/tmp/build/
  38. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  39. user: root
  40. redis:
  41. image: redis
  42. new_redis:
  43. image: redis
  44. mongo:
  45. image: mongo:3.6