docker-compose.ci.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. GCS_API_ENDPOINT: http://gcs:9090
  21. GCS_PROJECT_ID: fake
  22. STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
  23. MOCHA_GREP: ${MOCHA_GREP}
  24. NODE_ENV: test
  25. NODE_OPTIONS: "--unhandled-rejections=strict"
  26. depends_on:
  27. mongo:
  28. condition: service_healthy
  29. gcs:
  30. condition: service_healthy
  31. user: node
  32. command: npm run test:acceptance
  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. mongo:
  41. image: mongo:6.0.13
  42. command: --replSet overleaf
  43. healthcheck:
  44. test: "mongosh --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
  45. interval: 1s
  46. retries: 20
  47. gcs:
  48. image: fsouza/fake-gcs-server:1.45.2
  49. command: ["--port=9090", "--scheme=http"]
  50. healthcheck:
  51. test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b
  52. interval: 1s
  53. retries: 20