docker-compose.ci.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. extends:
  17. file: docker-compose-config.yml
  18. service: ci
  19. environment:
  20. ELASTIC_SEARCH_DSN: es:9200
  21. REDIS_HOST: redis
  22. QUEUES_REDIS_HOST: redis
  23. ANALYTICS_QUEUES_REDIS_HOST: redis
  24. MONGO_HOST: mongo
  25. POSTGRES_HOST: postgres
  26. GCS_API_ENDPOINT: gcs:9090
  27. GCS_API_SCHEME: http
  28. GCS_PROJECT_ID: fake
  29. STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
  30. MOCHA_GREP: ${MOCHA_GREP}
  31. NODE_ENV: test
  32. NODE_OPTIONS: "--unhandled-rejections=strict"
  33. depends_on:
  34. mongo:
  35. condition: service_healthy
  36. gcs:
  37. condition: service_healthy
  38. user: node
  39. command: npm run test:acceptance:_run
  40. tar:
  41. build: .
  42. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  43. volumes:
  44. - ./:/tmp/build/
  45. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  46. user: root
  47. mongo:
  48. image: mongo:4.4.16
  49. healthcheck:
  50. test: "mongo --quiet localhost/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 1)'"
  51. interval: 1s
  52. retries: 20
  53. gcs:
  54. image: fsouza/fake-gcs-server:v1.21.2
  55. command: ["--port=9090", "--scheme=http"]
  56. healthcheck:
  57. test: wget --quiet --output-document=/dev/null http://localhost:9090/storage/v1/b
  58. interval: 1s
  59. retries: 20