docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. command: npm run test:unit
  15. user: node
  16. test_acceptance:
  17. image: node:10.21.0
  18. volumes:
  19. - .:/app
  20. working_dir: /app
  21. environment:
  22. ELASTIC_SEARCH_DSN: es:9200
  23. REDIS_HOST: redis
  24. MONGO_HOST: mongo
  25. POSTGRES_HOST: postgres
  26. AWS_S3_ENDPOINT: http://s3:9090
  27. AWS_S3_PATH_STYLE: 'true'
  28. AWS_ACCESS_KEY_ID: fake
  29. AWS_SECRET_ACCESS_KEY: fake
  30. MOCHA_GREP: ${MOCHA_GREP}
  31. LOG_LEVEL: ERROR
  32. NODE_ENV: test
  33. AWS_BUCKET: bucket
  34. user: node
  35. depends_on:
  36. mongo:
  37. condition: service_healthy
  38. redis:
  39. condition: service_healthy
  40. s3:
  41. condition: service_healthy
  42. command: npm run test:acceptance
  43. redis:
  44. image: redis
  45. mongo:
  46. image: mongo:3.6
  47. s3:
  48. image: adobe/s3mock:2.1.20
  49. environment:
  50. - initialBuckets=fake_user_files,fake_template_files,fake_public_files,bucket
  51. healthcheck:
  52. test: ["CMD", "curl", "-f", "http://localhost:9090"]