docker-compose.ci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/overleaf/internal/
  4. services:
  5. test_unit:
  6. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  7. user: node
  8. command: npm run test:unit:_run
  9. environment:
  10. NODE_ENV: test
  11. NODE_OPTIONS: "--unhandled-rejections=strict"
  12. test_acceptance:
  13. build: .
  14. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  15. environment:
  16. ELASTIC_SEARCH_DSN: es:9200
  17. REDIS_HOST: redis
  18. QUEUES_REDIS_HOST: redis
  19. HISTORY_REDIS_HOST: redis
  20. ANALYTICS_QUEUES_REDIS_HOST: redis
  21. MONGO_HOST: mongo
  22. POSTGRES_HOST: postgres
  23. MOCHA_GREP: ${MOCHA_GREP}
  24. NODE_ENV: test
  25. NODE_OPTIONS: "--unhandled-rejections=strict"
  26. depends_on:
  27. redis:
  28. condition: service_healthy
  29. user: node
  30. command: npm run test:acceptance
  31. tar:
  32. build: .
  33. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  34. volumes:
  35. - ./:/tmp/build/
  36. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  37. user: root
  38. redis:
  39. image: redis:7.4.3
  40. healthcheck:
  41. test: ping="$$(redis-cli ping)" && [ "$$ping" = 'PONG' ]
  42. interval: 1s
  43. retries: 20