docker-compose.yml 596 B

123456789101112131415161718192021222324252627282930313233343536
  1. version: "2"
  2. volumes:
  3. node_modules:
  4. services:
  5. npm:
  6. extends:
  7. file: docker-shared.yml
  8. service: app
  9. command: npm install
  10. test_unit:
  11. extends:
  12. file: docker-shared.yml
  13. service: app
  14. command: npm run test:unit
  15. test_acceptance:
  16. extends:
  17. file: docker-shared.yml
  18. service: app
  19. environment:
  20. REDIS_HOST: redis
  21. MONGO_URL: "mongodb://mongo/sharelatex"
  22. SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
  23. depends_on:
  24. - redis
  25. - mongo
  26. command: npm run start
  27. redis:
  28. image: redis
  29. mongo:
  30. image: mongo:3.4.6