docker-compose.yml 1.3 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/sharelatex/sharelatex-dev-environment
  4. # Version: 1.3.5
  5. version: "2.3"
  6. services:
  7. test_unit:
  8. image: node:10.19.0
  9. volumes:
  10. - .:/app
  11. working_dir: /app
  12. environment:
  13. MOCHA_GREP: ${MOCHA_GREP}
  14. NODE_ENV: test
  15. command: npm run test:unit
  16. user: node
  17. test_acceptance:
  18. image: node:10.19.0
  19. volumes:
  20. - .:/app
  21. working_dir: /app
  22. environment:
  23. ELASTIC_SEARCH_DSN: es:9200
  24. REDIS_HOST: redis
  25. MONGO_HOST: mongo
  26. POSTGRES_HOST: postgres
  27. AWS_S3_ENDPOINT: http://s3:9090
  28. AWS_S3_PATH_STYLE: 'true'
  29. AWS_ACCESS_KEY_ID: fake
  30. AWS_SECRET_ACCESS_KEY: fake
  31. MOCHA_GREP: ${MOCHA_GREP}
  32. LOG_LEVEL: ERROR
  33. NODE_ENV: test
  34. AWS_BUCKET: bucket
  35. user: node
  36. depends_on:
  37. mongo:
  38. condition: service_healthy
  39. redis:
  40. condition: service_healthy
  41. s3:
  42. condition: service_healthy
  43. command: npm run test:acceptance
  44. redis:
  45. image: redis
  46. mongo:
  47. image: mongo:3.6
  48. s3:
  49. image: adobe/s3mock
  50. environment:
  51. - initialBuckets=fake_user_files,fake_template_files,fake_public_files,bucket
  52. healthcheck:
  53. test: ["CMD", "curl", "-f", "http://localhost:9090"]