docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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: "2.3"
  5. services:
  6. test_unit:
  7. image: node:10.21.0
  8. volumes:
  9. - .:/app
  10. working_dir: /app
  11. environment:
  12. MOCHA_GREP: ${MOCHA_GREP}
  13. NODE_ENV: test
  14. NODE_OPTIONS: "--unhandled-rejections=strict"
  15. command: npm run --silent test:unit
  16. user: node
  17. test_acceptance:
  18. image: node:10.21.0
  19. volumes:
  20. - .:/app
  21. working_dir: /app
  22. extends:
  23. file: docker-compose-config.yml
  24. service: dev
  25. environment:
  26. ELASTIC_SEARCH_DSN: es:9200
  27. REDIS_HOST: redis
  28. MONGO_HOST: mongo
  29. POSTGRES_HOST: postgres
  30. GCS_API_ENDPOINT: gcs:9090
  31. GCS_API_SCHEME: http
  32. GCS_PROJECT_ID: fake
  33. STORAGE_EMULATOR_HOST: http://gcs:9090/storage/v1
  34. MOCHA_GREP: ${MOCHA_GREP}
  35. LOG_LEVEL: ERROR
  36. NODE_ENV: test
  37. NODE_OPTIONS: "--unhandled-rejections=strict"
  38. user: node
  39. depends_on:
  40. mongo:
  41. condition: service_healthy
  42. gcs:
  43. condition: service_healthy
  44. command: npm run --silent test:acceptance
  45. mongo:
  46. image: mongo:4.0
  47. gcs:
  48. build:
  49. context: test/acceptance/deps
  50. dockerfile: Dockerfile.fake-gcs