docker-compose.yml 604 B

12345678910111213141516171819202122232425262728293031323334353637
  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_HOST: mongo
  22. SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
  23. LISTEN_ADDRESS: 0.0.0.0
  24. depends_on:
  25. - redis
  26. - mongo
  27. command: npm run start
  28. redis:
  29. image: redis
  30. mongo:
  31. image: mongo:3.4.6