docker-compose.yml 726 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: "2"
  2. volumes:
  3. node_modules:
  4. services:
  5. npm:
  6. image: node:6.9.5
  7. volumes:
  8. - .:/app
  9. - node_modules:/app/node_modules
  10. working_dir: /app
  11. test_unit:
  12. image: node:6.9.5
  13. volumes:
  14. - .:/app
  15. - node_modules:/app/node_modules
  16. working_dir: /app
  17. command: npm run test:unit
  18. test_acceptance:
  19. image: node:6.9.5
  20. volumes:
  21. - .:/app
  22. - node_modules:/app/node_modules
  23. environment:
  24. REDIS_HOST: redis
  25. MONGO_HOST: mongo
  26. SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
  27. LISTEN_ADDRESS: 0.0.0.0
  28. depends_on:
  29. - redis
  30. - mongo
  31. working_dir: /app
  32. command: npm run start
  33. redis:
  34. image: redis
  35. mongo:
  36. image: mongo:3.4.6