docker-compose.ci.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. version: "2.3"
  5. services:
  6. test_unit:
  7. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  8. user: node
  9. command: npm run test:unit:_run
  10. environment:
  11. NODE_ENV: test
  12. NODE_OPTIONS: "--unhandled-rejections=strict"
  13. test_acceptance:
  14. build: .
  15. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  16. environment:
  17. ELASTIC_SEARCH_DSN: es:9200
  18. MONGO_HOST: mongo
  19. POSTGRES_HOST: postgres
  20. MOCHA_GREP: ${MOCHA_GREP}
  21. NODE_ENV: test
  22. NODE_OPTIONS: "--unhandled-rejections=strict"
  23. depends_on:
  24. mongo:
  25. condition: service_healthy
  26. user: node
  27. command: npm run test:acceptance
  28. tar:
  29. build: .
  30. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  31. volumes:
  32. - ./:/tmp/build/
  33. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  34. user: root
  35. mongo:
  36. image: mongo:6.0.13
  37. command: --replSet overleaf
  38. healthcheck:
  39. test: "mongosh --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
  40. interval: 1s
  41. retries: 20