docker-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.1.24
  5. version: "2"
  6. services:
  7. test_unit:
  8. build: .
  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. test_acceptance:
  17. build: .
  18. volumes:
  19. - .:/app
  20. working_dir: /app
  21. extends:
  22. file: docker-compose-config.yml
  23. service: dev
  24. environment:
  25. ELASTIC_SEARCH_DSN: es:9200
  26. REDIS_HOST: redis
  27. MONGO_HOST: mongo
  28. POSTGRES_HOST: postgres
  29. MOCHA_GREP: ${MOCHA_GREP}
  30. LOG_LEVEL: ERROR
  31. NODE_ENV: test
  32. depends_on:
  33. - mongo
  34. - redis
  35. command: npm run test:acceptance
  36. tar:
  37. build: .
  38. image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
  39. volumes:
  40. - ./:/tmp/build/
  41. command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
  42. user: root
  43. redis:
  44. image: redis
  45. mongo:
  46. image: mongo:3.4